Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS604 Operating System Fall MidTerm 2012 - Questions
#1
Q1
there are five processes given below with their run time units. assume that all processes
arrive in numerical order at time 0 than answer the question given below.

p1 5
p2 4
p3 2
p4 1
p5 8

show the scheduling order for these processes under first-come-first-served, shortest-job
first, and round robin scheduling (quantum = 2)

Q2
a context switch is implemented by the kernel and it involves the copying of state
information between the processor and the process control block or thread control
block. is the context switch overhead of a user-level thread can be less than the
overhead for processes?

Q3
let us consider a code given below:

bounded-buffer problem

producer process

item nextProduced;

while(1){
nextProduced = getNewItem();
while(counter == BUFFER_SIZE);
buffer[in] = nextProduced;
in = (in+1) % BUFFER_SIZE;
counter++;
}

in the above code a variable counter has been used. please write down the purpose of
counter variable.

Q4
threads play important role during the execution of processes.you have to identify how
does a thread operate in the same way as that of process? mention at least 2 similarities
between a thread and a process?

Q5
how can you differentiate between the fifo & pipe?

Q6
differentiate entry section and remainder section.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,907 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS609 System Programming Assignment No. 03 Solution 21.01.2 Vuhelper 0 5,247 01-20-2016, 06:02 PM
Last Post: Vuhelper
  CS604 Operating System Assignment No.3 Solution 20th January 2016 Vuhelper 0 1,741 01-20-2016, 05:56 PM
Last Post: Vuhelper
  first semester assignment of cs604 spring may 2015 with final solution 2015 Xpert 0 2,690 05-15-2015, 03:20 AM
Last Post: Xpert
  Virtual university MCS online tuition and helping forum for fall 2014 Semester Xpert 0 1,296 09-28-2014, 05:19 PM
Last Post: Xpert
  CS507 Information System Assignment No. 03 Solution Spring Semester June 2013 Vuhelper 6 2,271 06-21-2013, 04:11 AM
Last Post: Xpert
  CS614 Data Warehousing Assignment No.3 Fall Semester 2013 Vuhelper 3 2,419 05-17-2013, 01:39 AM
Last Post: Xpert
  CS609 System Programming Assignment No.2 Solution Spring Semester 2013 Vuhelper 0 2,239 05-14-2013, 05:52 PM
Last Post: Vuhelper
  CS609 System Programming Assignment No.1 Solution Spring Semester 2013 Vuhelper 0 1,835 05-04-2013, 05:27 PM
Last Post: Vuhelper
  CS604 Operating System Assignment No.1 Solution Spring Semester 2013 Vuhelper 0 1,086 04-23-2013, 05:23 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)