Question
main()
{
fork();fork();printf("yes");
}
prints yes:
a.
only once
b.
twice
c.
four times
d.
eight times
Posted under Operating System
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. The following C program executes : main() { fork();fork();printf("yes"); } prints yes:
Similar Questions
Discover Related MCQs
Q. A virtual memory system uses First In First Out (FIFO) page replacement policy and allocates a fixed number of frames to a process. Consider the following statements :
P : Increasing the number of page frames allocated to a process sometimes increases the page fault rate
Q : Some programs do not exhibit locality of reference
Which of the following is TRUE?
View solution
Q. For 3 page frames, the following is the reference string :
7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
How many page faults does the LRU page replacement algorithm produce ?
View solution
Q. Applying the LRU page replacement to the following reference string :
1 2 4 5 2 1 2 4
The main memory can accommodate 3 pages and it already has pages 1 and 2. Page 1 came in before page 2.
How many page faults will occur ?
View solution
Q. In the working set model, for :
2 6 1 5 7 7 7 7 5 1 6 2 3 4 1 2 3 4 4 4 3 4 3 4 4 4 1 3 2 3
if DELTA = 10, then the working set at time t1 (….7 5 1) is :
View solution
Q. Consider the following page reference string :
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
For LRU page replacement algorithm with 4 frames, the number of page faults is :
View solution
Q. Consider the following page reference string :
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
For FIFO page replacement algorithms with 3 frames, the number of page faults is :
View solution
Q. Consider the following page reference string :
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
For FIFO page replacement algorithms with 4 frames, the number of page faults is :
View solution
Q. Consider the following page reference string :
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
For Optimal page replacement algorithms with 3 frames, the number of page faults is :
View solution
Q. What command is used to count the total number of lines, words, and characters contained in a file?
View solution
Q. What command is used to remove files?
View solution
Q. What command is used to remove the directory?
View solution
Q. What command is used with vi editor to delete a single character?
View solution
Q. What hardware architectures are not supported by Red Hat?
View solution
Q. The physical layer of a network
View solution
Q. What TCP/IP protocol is used for remote terminal connection service?
View solution
Q. How many networks and nodes per network, are allowed by the Class B network?
View solution
Q. What service is used to translate domain names to IP addresses?
View solution
Q. Which of the following command is used to create a Linux installation boot floppy?
View solution
Q. How can you add Amit, a new user, to your system?
View solution
Q. What file specifies the order in which to use specified name services?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Operating System? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Software Engineering
Learn about the systematic approach to developing software with our Software...
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...