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


+ Link For Assignments, GDBs & Online Quizzes Solution


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

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Q1                                                                                                 10 marks

An operating system is running three concurrent processes, P1, P2 and P3 for three different users. Each process requires six units of computing time. Process P1 consists of two threads where each thread blocks after 4 units of time. Process P2 consists of three threads, where each thread blocks after 4 units of time. P3 consists of four threads, where each thread blocks after 2 units of time. Further assume that the processes are entirely resident in primary memory. Suppose that the threads are kernel supported i.e. they are kernel level threads.The kernel implements preemptive priority scheduling of threads with priorities of processes ordered from P1 > P2 > P3. This means the threads of P1 have equal priority among them but have higher priority than all threads of P2 and P3. Similarly, threads of P2 have equal priority among them but have higher priority than all threads of P3. Of the first 9 units of time, how many will be devoted to each of the three processes.   


Q. 2                                                                                                                       5 marks

CPU is assigned with scheduling activity for some processes where certain parameters are required to met

  1. Number of processes are in execution in such a way that each is assigned a time slice for execution
  2. Response time is the basic critic
  3. Waiting time not imposed short

Which algorithm is best suitable to meet above criteria with elaboration in terms of its relevancy to other algorithms in working parameters.


Q 3                                                                                                                           5 marks

Describe four (non-disjoint) classes of thread-unsafe functions.

Q 4                                                                                                    5 marks

Describe the actions taken by a thread library to context switch between user-level threads.



i) Consider the below given information and calculate the average waiting time by applying the FCFS scheduling.

ii) In ________ processor assignment, threads are assigned to a specific processor.

iii) When an executing FIFO thread is interrupted, it is placed in the ______associated with its priority.

iv) _________ needs a way to block when no work to do and must be sure that event notification can surely wake it up.


v) In many real-life operating systems, such as Windows, Linux, or Solaris, ________ are used with explicit calls to locks and condition variables.

vi) On a multiprocessor system, interrupt disable doesn't provide_______.

vii) Threads cooperate in multithreaded programs to ________ resources and access shared data structures.

viii) _________ pthread command is used to determine thread’s own ID.

ix) Explicit reaping is only required for ______ running processes.

x) _________ is performed by parent on terminated child and Parent is given exit status information.


+ How to Follow the New Added Discussions at Your Mail Address?

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

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 179


+ 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?)

+ Click Here To Join (Our facebook study Group)

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

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