Sunday, 05 20th

Last update09:44:47 AM

Login With Facebook

Combinestudy

CS604 Spring 2012 Second Assignment

Rate this item
(0 votes)
In Linux Ubuntu flavor, write a program in C language to do the following tasks.
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

Rate this item
(0 votes)

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

Rate this item
(1 Vote)

Question # 1:
Five processes A, B, C, D and E are given below with their run time and arrival time.
Process CPU Time Arrival Time
A............. 8 .................. 0
B............... 1 .................. 1
C............... 2 .................. 3
D............... 1 .................. 4
E................ 5 .................. 2
(Where as Quantum = 3 ms)
Find the Turnaround Times, Waiting time and draw the Gantt chart for these processes by
using Shortest Job First and Round Robin scheduling Algorithms.
Question # 1:Five processes A, B, C, D and E are given below with their run time and arrival time.Process CPU Time Arrival TimeA............. 8 .................. 0B............... 1 .................. 1C............... 2 .................. 3D............... 1 .................. 4E................ 5 .................. 2(Where as Quantum = 3 ms)Find the Turnaround Times, Waiting time and draw the Gantt chart for these processes byusing Shortest Job First and Round Robin scheduling Algorithms.

Fourth 4th Assignment Spring 2011 CS604

Rate this item
(0 votes)
A computer system has a 32-bit virtual address space with a page size of 4K and 8
bytes per page table entry.

Third Assignment Spring 2011 CS604

Rate this item
(0 votes)
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.
Rate this item
(0 votes)

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

Rate this item
(0 votes)

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

Rate this item
(0 votes)
Question # 1:
Read the following program carefully and write the output of the program. Explain each line of code according to given numbering.