⟩ Predict the output of the following program code?
main()
{
fork(); fork(); fork();
printf("Hello World!");
}
Answer:
"Hello World" will be printed 8 times.
Explanation:
2^n times where n is the number of calls to fork()
main()
{
fork(); fork(); fork();
printf("Hello World!");
}
Answer:
"Hello World" will be printed 8 times.
Explanation:
2^n times where n is the number of calls to fork()
Define Demand Paging, Page fault interrupt, and Trashing?
Give a non-computer example of preemptive and non-preemptive scheduling?
What is starvation and aging?
If a system has 128 MB RAM and 1 GB hard Disk, and a process decides to use its fully allotted Virtual Memory 2^32 - 2GB = 2 GB, how is it practically possible?. But this works in all machines. How?
Difference between Logical and Physical Address Space?
Describe the actions taken by thread library to context switch between user level threads?
Explain briefly about, processor, assembler, compiler, loader, linker and the functions executed by them?
Explain Segmentation with paging?
What are the major differences between windows XP and Windows 2000 operating systems?
What is the difference between Hard and Soft real-time systems?