Operating System [3i Infotech Placement]: Sample Questions 56 - 57 of 81

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 56

Operating System

Question

MCQ▾

Windows supports

Choices

Choice (4)

a.

n tasks

b.

Multi user

c.

Question does not provide sufficient data or is vague

d.

All of the above

Answer

b.

Explanation

Understanding of Multi-User
  • A multi-user operating system allows multiple users to access a computer system concurrently.
  • Time sharing system is a multi-user system as it enables multi user access to a computer through the sharing of time
  • The users will typically be at terminals or computers that give them access to the system through a network, as well as other machines on the system such as printers

Question 57

Operating System
Edit

Write in Short

Short Answer▾

Predict the output of the following program code:

  1. main ()
  2. {
  3.     fork(); fork(); fork();
  4.     print(“HelloWorld”);
  5. }

Explanation

Each subsequent fork is executed by both parent and child and so on. First form is executed once by the parent creating 2 children. Second fork is executed by both parent and child creating 2 more children (total now becomes 4) . Third is executed by all 4 children creating 4 more children for a total of 8 processes. Thus in general “Hello World” is printed times where n is the number of calls to fork () .

Developed by: