CS604 Spring 2012 Second Assignment
1) Use fork ( ) system call to create a child process.
2) Child process should first take student name as input and then it should display student name that it takes
from user. At last, child process should display numbers from 0 to 5.
3) Parent process should first take VU Student ID as input and then it should display VU Student ID that it
takes from user. At last, parent process should display numbers from 6 to 10.
4) Output of the program should be like the one give below.
Enter Student Name: Mansoor Anwar
Student Name is: Mansoor Anwar
Spring 2012 CS604 1st Assignment Solution
Write a program in C language that take two inputs from user.
1) Program takes Student Name as input
2) Program takes Student ID as input.
After taking input from user, program should display two things.
1) Program should display Student Name that it takes from user as input
CS604 Fall 2011 2nd Assignment
Fourth 4th Assignment Spring 2011 CS604
bytes per page table entry.
Third Assignment Spring 2011 CS604
Third Assignment Spring 2011 CS604 Operating System
Question # 1:
Suppose that the system distinguishes among four types of resources, (A, B, C and D), the following is an example of how those resources could be distributed. There are five processes that take part in the execution and needed resources. You should find the all possible safe sequences for allocating the given resources.
Spring 2011 CS604 2
Question 1: Marks: 10
Suppose there are number of processes running on a system. New process in this
system arrives at an average of ten processes per minute. Each process requires an
average of 4 seconds of service time. Estimate the fraction of CPU busy time in a
system with a single processor.
Spring 2011 CS604 1 + Solution
Read the following program carefully and write the output of the program. Explain each line of code according to given numbering.
