Professional KnowledgeHardIBPS SO IT
Number of times Hello prints for: fork(); fork(); printf("Hello"); (each of the processes prints once)
- A. 2
- B. 3
- C. 4
- D. 8
Correct answer: C. 4
Two forks lead to 4 processes, each printing.
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- A thread shares which of the following with other threads of the same process?
- Two processes P and Q share variable X=0. P does X=X+1 and Q does X=X+1 (each: load, add, store) without synchronisation. Possible final…
- Which is a non-preemptive scheduling algorithm?
- The process state that follows 'running' when its time quantum expires is:
- Locality of reference supports which of these?
- Cache: direct-mapped, 64 KB, block size 16 bytes, 32-bit address. Tag bits: