We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

CS604_Share your Current Mid Term Papers Spring 2016 at One Place from 27 May 2016 to 8 June 2016

CS604_Share your Current Mid Term Papers

Spring 2016 at One Place

from 27 May 2016 to 8 June 2016  

 

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). View this link

https://vustudents.ning.com/group/cs604operatingsystems/forum/topic...

For view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

 

Solutions for not opening files..
 

PDF Files downloading Solution from ning..

 
Problem in downloading PDF files..

    

Thanks and Regards!

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..


See Your Saved Posts Timeline

Views: 6518

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

Replies to This Discussion

thx

my paper today

Q21

What are named pipe or FIFO?         

Answer

FIFOs (also known as named pipes) are used for communication between related or unrelated processes on a UNIX/Linux system.

Q22

How you would display status of background and suspended jobs processes?

We can use the jobs command to display the status of suspended and background

processes.

 

Q23.    What will happen if exit() is called instead of pthread_exit() in multithreaded system?

Answer

If we use the exit() system call, it will terminate the whole process instead of thread. The fact is that the purpose of the exit() system call is to terminate a process and not a thread.

Q24

Why Pipes are useful give at least two reasons?      

Two common uses of FIFOs are:

  1. In client-server applications, FIFOs are used to pass data between a server process and client processes
  2. Used by shell commands to pass data from one shell pipeline to another, without creating temporary files

 

Q25

There are five processes given below with their run time units. Assume that all processes arrived in order at time P1= 0 p2 =4 , P3 =2 , P4 =5 , P5 = 0. Then answer the question given below.

 

P1. 6

P2. 4

P3. 9

P4. 1

P5. 10

 

Show the scheduling order for the processes for FCFS, and Round -Robin (Quentum 4)

 

Answer

The scheduling process order for FCFS will be P1P5P3P2P4

The scheduling process order for RR will be

P1P5P3P2P4P1P5P3P5P3

 

Q26

Why fork() system call? Discuss kenal view and user view sort of that ?

Q identify three reasons why mknod() system call fails

Q24. What will happen if exit() is called instead of pthread_exit() in multithreaded system?

Threads ka question aya tha 5 num ka that how threads create..... and koi failure reasons likhni thi.....
q: ak table tha jis ma p1,p2,p3,p4 n inka data given tha wiating time find krna tha ye b 5 num ak tha...

and mostly mcqs from moaz file and given recent screen shots

30.06.16 12:00

  

All McQs from moaz file 100% 

subjective was conceptual ...

some Question from threads 

table dia hua tha turnaround time nikalna tha

itna yad h 

lucky ho innoxent :)

 

CS604_4/6/2016_9:00am

Total questions: 26

20 objectives 90% from past files

Subjective:

  • Write the name of threads where OS is fully aware of its creation and mapping methods and also give an example of OS that support these threads. (2Marks)
  • Differentiate between Turnaround time and Response time. (2 Marks)
  • Consider the following statement,

“read (pfds[1],  buf,  -5);”

Do you think that the given statement will work properly? Give reasons to support your answer. (3 Marks)

  • Selection of scheduling algorithm under specified workload is evaluated using a technique; do you know any technique which specifies this evaluation using some formula? State the technique name and also the name of its categories. (3 Marks)

 

  • Calculate the performance of FCFS algorithm for three computer-bound processes. By calculating

Waiting Time per process.

Average waiting time of processes

When three process p1, p2, p3 ready in queue at time 0 and there burst times are

Process P1: takes 20 seconds, Process P2 takes 5 seconds, Process P3 takes 4 seconds.

In first turn when processes arrive in order P1, P2, P3.

1n 2nd turn processes arrive in order p3, p2, p1. (5 Marks)

 

  • Let us consider the following code.

$ gcc server.c –o server

$ gcc client.c –o client

$ server &

[1] 432056

$ client

Hello, world!

Hello, class!

$

 

Out of server and client processes in the given code, which process will run in the foreground and which process will run in the background? Also tell that what does [1] and 432056 represent in the given code? (5 Marks)

 

Best of Luck 

Objective 

             Prepare Moaaz MCQs file for Objective

Subjective

        Attached file contains Current Solved 2016 MidTerm Exam Questions

 

SalMan HaidEr

MC140402297@vu.edu.pk

Attachments:

RSS

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service