cs604 Paper 2
cs604 Paper 2
COM
1. small
2. Large
1. True
2. False
1. interactive
2. Non-interactive
3. Fore ground
4. Preemptive
1. Non-preemptive scheduling
2. Preemptive scheduling
3. Dispatching scheduling
4. FCFS scheduling
Page 1 of 11
For more papers, go to VUInsider.com
FOR MORE PAPERS, GO TO VUINSIDER.COM
The procedure “The time at which the process finished working MINUS the
arrival time of the process MINUS CPU burst for that process” will help calculate
the _________.
1. Kernel
2. User
1. True
2. False
Whenprocess opens its first file explicitly it will get descriptor number ______
1
2
3
4
Taking the CPU from one process and giving the CPU to another process is
termed as
1. Context switching
2. Dispatching
3. Swapping
4. Tracking
Page 3 of 11
For more papers, go to VUInsider.com
FOR MORE PAPERS, GO TO VUINSIDER.COM
1. File
2. Screen
3. Printer
4. Scanner
1. nice
2. cmd
3. cat
4. grep
Page 4 of 11
For more papers, go to VUInsider.com
FOR MORE PAPERS, GO TO VUINSIDER.COM
1. Little’s Formula
2. Deterministic Modeling
3. Queuing Theory
4. Queuing analysis
In Unix/ Linux, by default the standard output file is attached to the ___________
1. File
2. Screen
3. Printer
4. Scanner
Questions:
QNo.1 List and define the different metrics by which might evaluate a
scheduler (List at least 4). 5 marks
Answer:-
Page 5 of 11
For more papers, go to VUInsider.com
FOR MORE PAPERS, GO TO VUINSIDER.COM
Round-Robin (RR)
Shortest-Job-First (SJF)
Answer:-
Number of queues
Method used to determine which queue a process enters when it needs service
Answer:-
A solution to the critical section problem must satisfy the following three
requirements:
Qno.4 There are many commands. Write the method through which these
commands can communicate with each other. 3 marks
Answer:-
Command Name $ pw
Details
You can display the absolute pathname of your working directory with the pwd
command
Syntax
/home/students/nadeem/courses/cs604/programs
Command Name cp
Details
Page 8 of 11
For more papers, go to VUInsider.com
FOR MORE PAPERS, GO TO VUINSIDER.COM
You can use the cp command for copying files. You can use the cp file1
Syntax
cp ~/file1 ~/memos/file2
Command Name mv
Details
You can use the mv command for moving files. You can use the mv file1
Syntax
$ mv ~/file1 ~/memos/file2
Command Name rm
Details
You can use the rm command to remove files. You can use the rm file1
Page 9 of 11
For more papers, go to VUInsider.com
FOR MORE PAPERS, GO TO VUINSIDER.COM
Syntax
Qno.5 Write Difference between SJF and Shortest Remaining Time First
Scheduling algorithm. 3 marks
Answer:
Page 10 of 11
For more papers, go to VUInsider.com
FOR MORE PAPERS, GO TO VUINSIDER.COM
Page 11 of 11
For more papers, go to VUInsider.com