Downloads
| Category: CS604 - Operating Systems |
|
|
Files:
CS604 Quiz Fall2011(1st) Operating System |
|
| |
| cs604 | |
| |
Read the following program carefully and write the output of the program. Explain each line of code according to given numbering. #include #include #include #include |
|
| |
Question # 1
[10] marks
Consider the following example of the FIFO page replacement algorithm. Calculate number of page faults and also show the working of FIFO algorithm having number of frames = 4 on the following reference string:
{Ali, Bilal, Ahmed, Salman, Shujaat, Ahmed, Salman, Bilal, Sarwar, Ali, Shujaat, Ahmed, Ali, Salman, Bilal, Sarwar}
Question # 2
| |
| |
Question # 1
The logical address space of the process is 32 pages and the size of each page is 4 Kb. There are 256 frames in the main memory. The size of a frame is equivalent to the size of a page. With the given information, answer to the following questions:
• Calculate the size of Logical Address?
• Find the size of the Logical .... |
|
| |
Question # 1
Using Banker’s Algorithm consider a system with six processes Pak, Iran, Qatar, Oman, UAE and Dubai and four resource types: A, B, C. and D Resource type A has 14 instances, resource type B has 10 instances, resource type C has 12 instances and D has 16 instances. Suppose that at a time T0 the following snapshot of the system has been taken:
i. Construct Need Matrix. [5 .... |
|
| |
Question # 1:
Part a: [10]
Using Non-preemptive SJF algorithm answer the following questions using the table below:
|
|
| |
Question # 1:
Understand the below program carefully and explain each line accordingly.
#include
void main ( )
1………………… {
2……………………….int pid, status;
3……………………….pid = fork ( );
4……………………….if (pid = = .... |
|
| |
Questions and answer from past papers of CS604 Operating Systems. Prepare Virtual University (VU) mid exam and get success. |
|
| |
Using Non-preemptive SJF algorithm answer the following questions using the table below: |
|
| |
Understand the below program carefully and explain each line accordingly. #include void main ( ) 1………………… { 2……………………….int pid, status; 3……………………….pid = fork ( ); 4……………………….if (pid = = -1) 5……………………… { 6……………………………printf(“fork failed\n”); 7……………………………exit(1) ; | |
| |
VU Course Contents CS604-Operating System |
|
| |