Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(c)
(h)
OR (Turn Over)
2 How to send a item and multiple item of data to a CGI script? Explain with suitable example. Describe various Javabean Scope. OR Create a table "Product" with fields data, quantity, price, manufactor using JSP and display those items with price > 12,000 ID 1000 1400 1500 1700 QTY 10 50 20 40 PRICE 12,000 100,000 14,000 3000 MFR IBS ABC IGM BIS
IX.
Generate a PHP script to create a page that allows the user to select a record then edit the record and update the database. OR Generate a PHP script for following form and then submit button is clicked add data to the "student table Internet Explorer X
ICI
SUBMIT
***
(e)
(a) ( 3) (c)
Explain the different interaction diagrams with suitable examples. OR Comment on activity partitions. With a suitable example explain a sequence diagram. What is a life line?
VI.
(a) (b)
Briefly explain design workflow. Explain interfaces and components. Give examples. OR Explain a well formed design class and its characteristics. Briefly explain the usage of OCL. Explain any four types of OCL expressions. Give examples. OR What is Software Architecture? Explain the common Architectural Styles. ***
DC.
(8 x 5 = 40) I. a. Is busy waiting always less efficient (in terms of using processor time) than a blocking wait? Explain. What advantage is there in having different time-quantum sizes on different levels of a multilevel queuing system? What is external fragmentation? Describe a method for overcoming external fragmentation? What is Translation Look aside Buffer? Explain the steps involved in the page replacement after a TLB miss? Compare Tree Structured Directories with Acyclic Graph Directories? Explain the steps in DMA transfer? Is it possible to have a deadlock involving only one process? Explain you answer. Can a system detect that some of its processes are starving? If you answer "yes", explain how it can? If you answer "no", how the system can deal with starvation problem?
h.
PART - B (4 x 15 = 60)
II.
III.
Explain the concept of 'process'. With suitable diagrams explain five states of process and process control block (PCB/TCB). OR Consider the following set of processes, with the length of the CPU burst time given in milliseconds
(15)
Process PI P2 P3 P4 P5
Burst Time 10 1 2 1 5
Priority 3 1 3 4 2
The processes are assumed to have arrived in the order PI, P2, P3, P4, P5 all at time 0 and smaller priority number implies a higher priority. Illustrate the execution of these processes using FCFS, SJF, a non preemptive priority scheduling? What is the turnaround time of each process for each of the scheduling algorithms discussed above?
(15)
OF SChc.
(Turn
over)
2 Explain the concept of paging. Consider a logical address space of eight pages of 1024 words each mapped on to a physical memory of 32 frames. Draw and explain paging architecture.
OR
(15) (15)
Under what circumstances do page faults occur. With suitable diagram describe the actions taken by the operating system when a page fault occurs. VI. Multi programming environment demands shared directories, explain a directory structure which supports shared directories. Explain how this directory structure deals with Files with Multiple absolute path names. Dangling pointers to the non existing file, after a file deletion.
OR
(15)
VII.
Suppose a disk drive has 5000 cylinders, numbered 0 to 4999, the Drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125. The queue of pending requests in FIFO order is 86, 1470, 913, 1774, 1509, 1022, 1750, 130. Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending request for each of the following disk scheduling algorithm (a) FCFS (b) SSTF (c) SCAN (d) C - SCAN Consider the following snapshot of a system Allocation ABCD PO PI P2 P3 P4 0 1 I 0 0 0 0 3 6 0 1 0 5 3 1 2 0 4 2 4 Max ABCD 0 1 2 0 0 0 7 3 6 6 1 5 5 5 5 2 0 6 2 6 Available ABCD 1 5 2 0
(15)
VIII.
Answer the following questions using banker's algorithm What is the content of the matrix need? Is the system is in safe state? If a request from process PI arrives for (0,4 , 2, 0), can the request be granted immediately.
OR
c. IX.
(15) (15)
When a detection algorithm determines that deadlock exists, what are the possibilities to deal with the deadlocked system? Explain in detail.
***