1
Q:

main()

{

fork();

 

printf(“Hello World!”);

}

Output for the above unix program is

A) Hello World! B) Hello World!Hello World!
C) Hello World D) None

Answer:   B) Hello World!Hello World!



Explanation:

The fork creates a child that is a duplicate of the parent process. The child begins from the fork().All the statements after the call to fork() will be executed twice.(once by the parent process and other by child). The statement before fork() is executed only by the parent process

Subject: Operating Systems
Exam Prep: GRE
Q:

List out some reasons for process termination.

Answer

- Normal completion


- Time limit exceeded


- Memory unavailable


- Bounds violation


- Protection error


- Arithmetic error


- Time overrun


- I/O failure


- Invalid instruction


- Privileged instruction


- Data misuse


- Operator or OS intervention


- Parent termination.

Report Error

View answer Workspace Report Error Discuss

22 16433
Q:

How many jobs can be run concurrently on MVT?

Answer

15 jobs.

Report Error

View answer Workspace Report Error Discuss

1 2336
Q:

What is process spawning?

Answer

When the OS at the explicit request of another process creates a process, this action is called process spawning.

Report Error

View answer Workspace Report Error Discuss

2 5239
Q:

What is a drawback of MVT?

Answer

It does not have the features like



  1. ability to support multiple processors

  2. virtual storage

  3. source level debugging

Report Error

View answer Workspace Report Error Discuss

0 2003
Q:

Is Windows NT a full blown object oriented operating system? Give reasons.

Answer

No Windows NT is not so, because its not implemented in object oriented language and the data structures reside within one executive component and are not represented as objects and it does not support object oriented capabilities.

Report Error

View answer Workspace Report Error Discuss

2 2905
Q:

What are the key object oriented concepts used by Windows NT?

Answer

Encapsulation, Object class and instance.

Report Error

View answer Workspace Report Error Discuss

1 2398
Q:

What is SMP?

Answer

To achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used. In essence, with SMP any process or threads can be assigned to any processor.

Report Error

View answer Workspace Report Error Discuss

1 1649
Q:

What are the four layers that Windows NT have in order to achieve independence?

Answer

1.Hardware abstraction layer


2.Kernel


3.Subsystems


4.System Services.

Report Error

View answer Workspace Report Error Discuss

2 3498