JUNE 2013 - Paper 3

56:  

If f(x, y) is a digital image, then x, y and amplitude values of f are 

A.

Finite

B.

Infinite

C.

 Neither finite nor infinite

D.

None of the above

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



57:  

Consider the following processes with time slice of 4 milliseconds (I/O requests are ignored) :

Process              A            B             C                D
Arrival time        0            1              2                3
CPU cycle           8            4              9                5

The average turn around time of these processes will be 

A.

19.25 milliseconds

B.

18.25 milliseconds 

C.

19.5 milliseconds

D.

18.5 milliseconds

 
 

Option: B

Explanation :

For explanation to similar questions Click Here

Click on Discuss to view users comments.

Write your comments here:



58:  

A job has four pages A, B, C, D and the main memory has two page frames only. The job needs to process its pages in following order :
A B A C A B D B A C D
                                Assuming that a page interrupt occurs when a new page is brought in the main memory, irrespective of whether the page, Is swapped out or not. The numboer  of page interrupts in FIFO and LRU page replacement algorithms are - 

A.

 9 and 7

B.

7 and 6 

C.

9 and 8

D.

8 and 6

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

shaveta said: (8:27pm on Sunday 8th September 2013)
the answer is B

Write your comments here:



59:  
suppose S and Q are two semaphores initialized to 1  P1 and P2 are two processes which are sharing resources.
P1                                                   P2 
wait(S) ;                                    wait(Q) ;
wait((Q) ;                                   wait(S) ;
critical-section1                    critical-section 2
signal(S) ;                              signal(Q) ;
signal(Q ;                               signal(S) ;
 
Their execution may sometimes lead to an undesirable situation called
 
 
A.
Starvation
B.
Race condition
C.
 Multithreading
D.

Deadlock

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



60:  

An operating system using banker's algorithm for deadlock avoidance has ten dedicated devices (of same 'type) and has three processes P1, P2 and P3 with maximum resource requirements of 4, 5 and 8 respectively. There are two states of allocation of devices as follows :
State 1          Processes       P1       P2     P3

                       Devices
                      allocated
        2           3         4

State 2        Processes        P1       P2          P3

                     Devices
                    allocated
           0           2          4

Which of the following is correct ? 

A.

State 1 is unsafe and state 2 is safe. 

B.

State 1 is safe and state 2 is unsafe.

C.

 Both, state 1 and state 2 are safe.

D.

Both, state 1 and state 2 are unsafe.

 
 

Option: B

Explanation :

 Here total number of resources are given in form of devices. Use devices i.e. 10 as resources. So ans (B) is correct

Click on Discuss to view users comments.

ashwani singla said: (9:26pm on Wednesday 7th August 2013)
the sum of state1 = 9 (10 -9 ) = 1 (we can't complete any of the process) the sum of state2 = 6 (10 -6 ) = 4 (first we complete p1, then p2, then p3). Answer : AIf i am wrong, plz explain
Ram Gopal said: (2:46pm on Monday 25th November 2013)
In state 2 suppose process p2 demand for 2 more devices and P2 for one and P 3 for 1.. new availabality is here we manually can not assign any dedicated device to a process any process can send request for a device if it is free then it is alocated to process...given state 2 isp1 = 0 , p2 = 2 , p3 = 40 4 2 = 6 devices alocated out or 10 4 are availabel hencerequired state may be:P1 = 2 , P2 = 3 , p3 = 5Now no more devices available and here each device is asking for a device to be allocated sure dead lock will be there and it is also an unsafe state.......... if any one find solution or proper resean plz guide me on rgkhatkarmt@gmail.comis it mandatory to allcate all resources in one go

Write your comments here: