Time Left - 15:00 mins
GATE CS 2021 : Operating system Rapid Quiz 1 (App update required to attempt this test)
Attempt now to get your rank among 576 students!
Question 1
A system can support a process with user-level threads or Kernel level threads. Identify the correct statement from the following?
Question 2
consider the following pseudo code.
main()
{
int t1=0, t2=0, t3=0;
t1=fork(); // fork 1
t2=fork(); // fork 2
if(t1!=0)
{
t3= fork(); // fork 3
printf(“0”);
}
}
How many 0’s are printed when above code is executed.
main()
{
int t1=0, t2=0, t3=0;
t1=fork(); // fork 1
t2=fork(); // fork 2
if(t1!=0)
{
t3= fork(); // fork 3
printf(“0”);
}
}
How many 0’s are printed when above code is executed.
Question 3
A hard disk with 5 platters has 1024 tracks per platter,512 sectors per track and 512 bytes/sector. What is the total capacity of the disk?
Question 4
Suppose there are 13 processes and each process requires 4 instances of resource type R, then minimum number of resources required in order to ensure the execution of all the processes without deadlock is
Question 5
Let where (a, b) a=Start time, b=Finish time
Find the minimum number of machines required to schedule all the task.
Find the minimum number of machines required to schedule all the task.
Question 6
Consider a scheduling algorithm Shortest remaining time first (SRTF) used for scheduling purpose and if two process having same remaining burst time at a particular time then the one came first will get chance. There are 6 processes for which arrival time and burst time is given as
Average Waiting Time(WT) is _____.
- 576 attempts
- 6 upvotes
- 6 comments
Aug 1GATE & PSU CS