Ennriri Ticn: If::: A, S'e!n
Ennriri Ticn: If::: A, S'e!n
s jTY
.l.r S ai f LiIt Ol Et..icNEERIt.C
Ennriri*ticn Cclfr.ol Di.iisiol
lL}TS Cirrifrx
P1 I 4
Pj 2 2
Assume ihe processes a[ived il the oider p;, p2, p3, p't and pj al1 ttme 0, pr.iority 1 as
;rishesi a.1d 4 as lc\,est.
a) Diaw the gaott chari
t') CalcDl3te averag: rvaiting iin]e and al,erage iunaror.:nd
iirDe for the foiicriing
scheduling algoritl.rn.
' i, r"l-.n 1. u.r:c;::.. l7
Ro:r...1
iii-\ |:io::t.,' ;,-reegpl;'.'1
rii,, --,.1- iivq < rJ:
(n ) FCi-S
i4+41
[2x41
.rr
Tji.I l1 r I L: i.r_r l_ r.i 1,
i ti \_ r r._
,\:' t; iL c I
.,_r'ri::.t:::J :.je ijalIjr:al :rr
{j., :
- : a :tl,tt. 1 [ I q! i : : i r,: t.
i:.-ll
I
i.r D:il!e feee c.itdlilc;rod ciiricai seciic;t.
Why process needs to i_.e sJ,rchrcnizrci?
Gl',,e ela:.rp1e.
a)Draw|.heGantlchansholvinglheexeculionforFCFS,SRTNaldRR(Quantum=2)
Time?..
;i ;;il"i*ffi;,"'uttt in Inti*ittto* r'verage Tumarotrnd
Explain the "Dinninq-P,flljo:::ller eroblen"
5. $hat is Mutual Exclusion' probler'r in I?C?
problem hupp"n' in ftestnt the solution wirh pseudocodeBi2+61
*'hen suoh "o^puo'"'yJt"i':
exaljrPrc.
$!-nte"J::-osstqqlglY*-qngTg-!)
practicable.
,/ Candidates are required to give their answers in their own words as far as
{ Attempt 4ll questions-
/ The figures in the margin indicate Full Marlrs.
{ Assume suitable data if necessary.
Consider a disk queue with requests for I/o to blocks on cylinders 23,
89, 132, 42, 187 '
3. much seek is
Assume disk head initially at iOO and a seek takes 6m/sec/cylinder. How
needed for FCFS, SSF und SCAN disk arm scheduling algorithns. t8l
Explain ilode approach of fite system implementation with its advantages
n
.i.
and
disadvantages. t8l
are the differences betueen fixed partitioning and variable
partitioning system of
5. What
memory for multiProgramrning? 'l [3+5]
Replacement al gorithm?
7. iWhat is critical section problem? Why must the executing the critical section be mutually
exclusive? Describe how semaphore can be used to solve the critical section
problem. [2+2+4]
responsibilities
8. What is the significance of system adrninistration? Describe the role and
of system adirinistrator to keep the system updated and efficient. Explain with an
example. 13+51
l
9. Consider a system with 5 concurrent processes (PO,PI ,P2,P3,P4) and 4 resources types
(R0,R1,R2,R3). The number of instances of each resources tlpe in the system are 6,4,4,2
respectively" Allocation table and Maxirnum claim table are as follows: 14+41
Allocation
RO RI R2 R3
Maximum claim
PO 3 7' I I
RO RI R2 R3 P1 I 2 0 2
PO 2 0 I I P2 t 1 2 0
PI I I 0 0 P3 3 2 I 0
.P2 I I 0 0 P4 2 I 0 I
P3 I 0 I 0
P4 0 I 0 I
3. a) What is race condition? Explain how SleepQ and Wakeup0 solution is better than
busy waiting solution for critical section problem. l2$l
b) What is TSL? Why it is used? Explain the major operations of semaphore with a
simple implementation as a class. t5]
4. What is thrashing? Consider the following page-reference storing-
7 , 0, 1,2,0,3, 0, 4,2, 3, 0,3,2, 1,2, 0, |,7, 0, l. How many page faults woud occur for
the following page replacement algorithms, assuming 3 frame.s:-
a) FIFO b) Optimal c) LRU d) LFU [2+8. _
5. Discuss various file allocation and access methods. Compare their advantages and
disadvantages. 14+61
6. A disk drive has 50 cylinders, numbered 0 to 49. The drive is currently serving a request
at cylinder 15, and the queue of pending requests, in FIFO order is 4,40, 11,35,7, 14.
What is the total distance that the disk arm moves for the following algorithms:-
a) FCFS r b) SSTF c) SCAN d) LOOK e) C-SCAN UOl
7. What is Deadlock and indefinite Postponement? Explain the necessary conditions for
deadlock and Explain how deadlock can be prevented? A system has 2 process and 3
r€sorrrpes. Each process need maximum of two resources, IS deadlock possible? Explain.[+1+3+3+2-
1. a) Why Operating system is termed as virtual machine? Briefly mention the function
of
Operating system. t5l
b) What is System Call? ExPlain in brief about the given architecture of operating
system. [2+3]
i) Monolithic Architecture
ii) Virtual Machine
process
Z. a) Define process. Describe the various states of process. How significant is the
l+2+2)
hierarchy? t
b) Make a schedule as per Rate Monotonic (RM) algorithm for the following set of real
time tasks: tsl
Task, T Period, P Execution time, E Phase,O
Tr 4 I 0
Tz 5 2 0
Tg 20 5 0
3. Define race condition. What are the requirements of mutual exclusion? Solve producer
consumer problem using sernaphore and mess ge passing. 12+2+61
5. Suppose a disk drive with 200 cylinders numbered from 0 to 199. The drive is currently
**irrg arequest at 53. The queue of pending request is 98, 183, 37,122,L4, 124,65,67.
Staning from the current head position, Calculate total head movement (in cylinder) that
the disk ann moves to satis$ all the pending request for FCFS, SSF and SCAN disk
scheduling algorithm. t6l
6. what is Rile Attribute? write the difference between Single level directory sYstem and
Hierarchial directory system. Explain how operating system manages free blocks of
Secondary storage. [1+3+6]
7. List fow essential conditions for deadlock. Explain each of them briefly. What would be
v system) to prevent the deadlock? How deadlock is recovered?
necessary (in operating
Explain. ' [10]
as practicable'
,/ candidates af,e required-to give their answers in their own words as far
{ Attempt All questions.
,/ figures in the margin indicate Full
The hI-arks-.
,/ A,ssume suitable data if necessary'
2 Assume the system having two processorsof same configuration, schedule the following
set of processes according to preemptive priority and round
robin algorithm (Time
&;d-:1tft calculate average waiting time and average turnaround time. [5+5]
E 4 6 2
F 8 5 I
G 7 7 3
H 3 4 4
I + 2 J
to execute critical
Explain critical section problem. why is it important for a thread a
J. a)
t5l
section as quickly as Possible?
b) Define Sernaphore and explain the major operations in semaphore including
pseudocod-.
' t5l
gical address is rnapped to
4. a) Differentiate compaction and Coalescing
physical address by Paging Technique? E e example' [2+3i
b) With alr examPle, show that FIFO page replacement algorithm suffers from Belady's
anomaly" \\4rat is thrashing? [3+2]
5. Briefly mention the structured VO software with suitable diagram. ComPare the
q.ith SSTF t6l
throughput (overall performance) of scAN
6. a) In rvhat ways is file system management similar to virtual memory management?
What are the advantages and disadvantages of a contiguous file allocation
scheme?
Whish file organization technique is most appropriate for tape storage? Why? [3+3]
b) List the file system performance indicators with brief explanation- t4l
h 7 . What is the difference between deadlock and indefinite postponement? Consider a system
with 5 concurrent processes (P0,P1,P2,P3,P4) and 4 resource types (R0,RI,R2,R3). The
number of instances of each resource type in the system are 6,4,4,2 respectively.
Allocation table and Maximun claim table are as follows: [3+71
RO RI R2 R3 RO RI R2 R3
PO L 0 I I PO 3 2 I I
PI I I 0 0 PI I 2 0 2
P2 t 1 0 0 P2 I I 2 0
P3 1 0 I '0 P3 3 2 I 0
P4 0 1 0 I P4t 2 I 0 I
Allocation Maximum claim
Is the state safe? If so, show the safe execution of the processes.
8. Write short notes on: [3.5xa]
D Duties and responsibilities of system administration
ii) Tlpes of secr:rity Attack
iii) Principle of VO Software
iv) TINIX file systern
43 TRIBHUVAN UNIVERSITY Exam. Regular
TNSTITUTE OF ENGINEERING Level BE Full Marks 80
l. a) Explain the Virtual Machine Structure. What are the benefits over other operating
system structure? 12+21
b) What is operating system? Briefly explain the function of operating system u+41
2. a) Differentiate between process and thread. Explain the advantages of multithreading. l2+2)
b) Schedule the following setof processes according to HRRN and Round Robin
algorithm (Time quantum:4) and calculate average waiting time and average
turnaround time. tsl
Process Anival Time CPU Time (ms)
A 0 l2
B 2 8
C 5 7
D 10 9
5. What is file system layout? Explain how operating system manages free blocks of
secondary storage. 13+71
6. What is disc scheduling? Explain details about the device independent I/O software with
example. [3+6]
7. What is deadloc[<] Explain the essential condition for deadlock. How you detect
deadlock? Explairf with example. 12+4+41
8. Explain the types of attacks. Explai4, how can you implement security and protection on
all components of a system. [3+6]
g. What is system administration? How is a special user different from a general user?
Explain. t2+31
* *,F
I
I -j.-q
rd:ta
43 TRIBHT'VAN TJNIVERSITY Exam. llegullr'/ liacli
INSTITU'TE OF ENGTNEERING Level BE Full Marks 80
Examination Control Division Programme BCT Pass Marks 32
2071 Bhadra Year / Part III / II Time 3 hrs.
1. What is the role of supervise call in an operating system? Write down the major
differences between following tlpes of operating system. [2+8J
a) Batch System
b) InteractiveSystem
c) Real Time System
d) Time Sharing System
2. Define Context Switching. Discuss S-state model of process. Schedule the following set
of prccess according to multilevel feedback queue scheduling algorithm and compute
AWTandATAT. t2+3+51
Process P1 P2 P3 P4
ArrivalTime 0 t2 25 32
CPU Burst (rns) 25 l8 4 l0
Assume that there are three ready queues Ql, Q2 and Q3. The CPU time slice for Ql and
Q2 is 5 ms and l0 ms rrspectively and processes arescheduled on FCFS basis in Q3.
3. Define race condition with example. Explain Peterson's Algorithm. [3+7]
4. Differentiate compaction and coalescing techniques. How logical address is mapped to
real physical address by paging technique? Explain with suitable example. What is the
role of TLB? 14+4+21
5. Describe different file allocation methods. Explain free disk space management with
example? [6+4]
6. Consider a system with 5 processes Ps through Pl and three resources types A, B, C.
Resources types A has 7 instances, B has 2 and C has 6 instances. Suppose at t0 tirne wc
have following state: [0]
Allocation Request Available
Proc,ess .,C
A B A B c A B c
PO 0 I 0 0 0 0
PI 2 0 0 2 0 2 000
P2 3 0 3 0 0 0
P3 L I I I 0 0
P4 0 0 2 0 0 2
1. What do you understand by firmware? Can you relate with operating system? Are there
any linkages among hardware, software, firmware and operating system? [0]
2. What makes the message passing IPC as one among the best methods of IPC
implementation? Explain with pseudo0code details. tlOl
3. Prepare a comparative note on the fixed and variable partition multiprogramming
management.
techniques for neal memory tl0l
4. a) What is paging? How does it work? t3I
b) Explain the diffe,rences in the degree to which (i) First Come First Serve (ii) Round
Robin and (iii) Multi level gueues, scheduling algorithms discriminate in favor of
shortprocesses. tT
5. Consider a system consisting of m (€source of the mure t5rye, being shared by n
processes. Resources can be requestd and released by processc only one at a time. Show
that the system is deadlock free if the following two conditionshold: Il0l
a) The mar<imurr need of each pnocess is betneen I and m tesiounces.
b) The sum of all maximumneeds is less than m * n.
6. a) What is a device controller? What is a device driver? How do they relieve
programmer? Explainwith an example of any I/O device. t7l
b) Explain the implementation of process. t3l
7. What is bootstrapping? Explain the working principle of atlpical assembler. What are the
program?
different records present wittrin object tl0l
8. Compare the followings: l2.5x4l
a) Semaphore Vs Monitor
b) Latency time Vs seek time
c) Coalescing Vs Compaction
d) Real Memory Vs Virtual memory
***
43 TRIBHUVAN I.JNTVERSITY Exam. Nerr lJack (206(r & f.atcr llltch)
INSTITUTE OF ENGINEERING Level BE Full Marks 80
Examination Control Division Programme BCT PassMarks 32
2070 Magh Year / Part mitI Time 3 hrs.
3. Define critical section and mutual exclusion with respect to multiple-process system.
Solve producer and consumer problem using semaphore [3+5]
4. What is page fault? Consider the following page reference string: 1,2, 3, 4,2, l, 5, 6,2,
1,2,3,7,6,3,2,1,2,3, 6. How many page faults would occur for the FIFO, Optimal,
LFU and LRU replacemefit algorithms having five frarn'eS? Remember all frarnes arO
initially empty, so your first unique page will cost one fault each. [2+8]
5. What are the different methods for allocating disk space for file? Explain free space
management techniques. 12+61
6. Suppose that a disk drive has 100 cylinders, numbered 0 to 99. The drive is currently
serving a request at cylinder 43, and previous request was at cylinder 25. The queue of
pending request, in FIFO order is: tl0]
86, 7 0, 13, 7 4, 48, 9, 22, 50, 30
Starting from the current head position, what is the total distance (in cylinders) that the
disk arm moves to satisfr all pending requests for each of the following disk scheduling
algorithms?
a) First-come, First served
b) Shortest Seek Time First
c) Look
d) C-Scan
e) Scan
7. What is deadlock? How it occurs? Explain various deadlock avoidance methods with
examples. t2+2+61
8. What are the roles of system administrators for an organization? How can you increase
operating system performance if you are selected as a system administrator? 14+41
9. Write short notes on: (any two) 14+41
a) Information security model
b) Security attack
{.**
46 TRIBHUVAI.I LTNIVERSITY Exam. .l{cgullr (2(}(r(r ct [-ale r llalclt)
INSTITUTE OF ENGINEERING LeVel BE Full Marks 80
I
43 TRIBHUVAN I.JNIVERSITY Exam. llcgul:rr'
INSTITUTE OF ENGINEERING Level BE Full Marks 80
S (cr6s6)
/ Candidates are required to give their answers in their own words as far as practicable.
{ Attempt 4llquestions.
r' The/igures in the margin tndicate Full Mar*s.
r' Assume suitable data if necessary.
l. List the essential properties for the Batch-oriented and Interactive operating system. For
each of the following application which system (Batch or Interactive) is more suitable?
State the reason. [4+6]
a) Word Processing
b) Generating monthly bank statements
c) Computing pi to million decimal places
d) A flight simulator
e) Generating mark statement by University
D Data acquisition from temperature sensor
2. Consider the following set of process with the length of the CPU burst time given in
millisecond. 14+41
Process PI P2 P3 P4 P5
Burst time l0 I 2 I 2
; Prioritv 3 I 3 4 2
Assume the processes arrived in the order Pl, P2,P3, P4 and P5 all at time 0, priority I as
highest and 4 as lowest.
a) Draw the Gantt chan for FCFS, SJF, Priority and Round Robin lQuantum:2)
b) Which algorithm results in the maximum average waiting time?
3. What is race condition and critical section problem? Explain all possible approaches to
handle the situation'\rhile one process is busy updating shared memory, no other process
will enter its critical section and cause trouble". [2+8]
4. Calculate Hit and Faults using various page replacement algorithm policies. (FIFO, LRU,
Optimal) for the following page sequence (The page frame size is 3) 12+61
2 3 5 4 2 5 7 3 8'7
5. Explain file system layout in detail. What are the major differences between file system
interfaces and file system implementation? [6+4J
6. What are the disadvantages of progranrmed llo? Explained about DMA. What are the
functions of device independent I/O software? t2+2+41
7. What is deadlock? State the necessary conditions for deadlock to occur. Give reason, why
all conditions are necessary. [10]
8. Explain the domain-object and ACL. How these mechanisms are implemented for
security? 14+41
9. Write short notes:
a) Roles of System Administration t4l
b) Shell Scripts t4I
46 TRIBHUVAN IJNIVERSITY Exam. -llegullr' (21)(r6 ct l-rttu' llrrtch)
\ BE FuIl Marks 80
INSTITUTE OF ENGINEERING Level
Examination Control Division Programme BCT Pass lVlarks 32
.r
4l LJNIVERSITY '\'.
TRIBHWAN Exam. Reqular / Back
INSTITUTE OF ENGINEERING Level BE Full Marks 80
Examination Control Division Programme BCT Pass Marks 32
2068 Bhadra Year / Part m/u Time 3 hrs.
Subiect: - System
r' Candidates are required to give their answers in their own words as far as practicable.
r' Afiempt All questions.
r' Thefigures tn the margin indicate Full Marks.
,/ Assume suitable data if necessary.
l. What are the functions of an operating sy-stem? Explain about microkemel. [3+5]
2. What is a monitor? Solve dining philosopher man's problem using semaphore. t8l
3. Describe the difference between preemptive and non- preemptive scheduling algorithm.
Explain about scheduling in real time. 14+41
4. A system that uses the Banker's Algorithm deadlock avoidance has five processes (1,2,
3,4 and 5) and four tlpes of resources (A, B, C and D). There are multiple resources of
each t1pe. Is the following state safe or not? If it is, show how the processes can
complete. If not, show how they can deadlock. t8]
Current loan Max need Current claim
Process
ABCD ABCD ABCD
I I 1020 3242 2222
2 03t2 35t2 3200
3 2451 2775 0324
4 3006 5508 2502
5 4213 621 4 2001
Resources Available Total Resources
ABCD ABCD
3401 1313913
5. What is a critical reason and race condition? What are the limitation oi optimal page
*
6. What is segmentation? Suppose a machine has 48 bit virtual addresses and32 bit physical
address. [3+5]
a) If pages are 4KB, How many entries are in the page table?
b) Suppose the same slatem has a TLB (Translation Look a side buffer) with 32 entries.
Further.more suppose that a program contains instructions that fit into one page and it
sequentially reads long integer elements from an array that spans thousands of pages.
How effective will the TLB for this case?
7. What is a file system layout? Explain about I- Node and file system backup. [3+5]
8. What is a interleaving? Consider a Winchester - style hard disc with 100 cylinders, four
double - sided platters and 25 sectors per track. The following is the (time - ordered)
sequence ofrequests for disc sectors: {3518, 1846, 8924,6672,1590, 4126,107,9750,
158,6621,446,11) The disc arm is currently at cylinder 10, moving towards 100. For
each of SSTF, SCAII and C'SCAN, give the order in which the above requests would be
12+6)
g. What is a trap door? Explain in firewalls and access control lists. 12+61
10. What are the goals of UNIX? Explain about NFS protocol and draw the structure of NFS. 12+61
*** -. .
4I TRIBHWANT'NIVERSITY Exam. Resular / Back
INSTITUTE OF ENGINEERING Level BE Full Marks 80
Examination Control Division Programme BCT PassMarks 32
2067 Mangsir Year / Part m/II Time 3 hrs.
Subiect: - System
'/ Candidates ire required to give their answers in their own words as far as practicable.
,/ Attempt All questions.
'/ Thefi,gures in the margin indicate Full Marks.
,/ Assume surtable data if necessary.
1; How an operating system acts as a virtual machine? What are the different structures of
an operating system? Explain in detail about context switching. 12+2+4)
2. What is the diffi:rence between process and thread? Solve Dining philosophers problem
using semaphores. [3+5]
3. What is dispatcher? Schedule the following process applyrng highest response ratio hext
scheduling algorithm. Assume P1 is the first process [1+7]
Process No Pr Pz Pr Pt
Arrival time (sec) 1 2 4 15
Service time (sec) 10 30 20 20
If P+ need 2 second of service time does the sequence of schedule change?
4. Explain the algorithm for detecting dead lock for one resource of each type. Consider that
the system consists of m resources of same type being shared by n process each of which
need at most two resource. Explain whether the system is deadlock tree or not? t8]
5, What are the requirements of long term information storage? What is I- node? Draw the
block diagram of virtual file system. t2+3+3)
6. What is paging? Consider a swapping system in which memory consists of the following
hole size in memory order 10KB, 4KB,20KB, 18KB,7KB, 9KB,l2I(3 and 15K8.
Which hole is taken for successive segment request of 12+6)
a) 12KB
b) 10KB
c) 9KB for first fit, next fit and best fit placement strategies.
7. What is the disadvantage of programmed VO? Explain about DMA. What are the
functions of device independent VO sofhVare? 12+4+21
8. What are the goals of Unix system? Draw the structure of Linux kernel. 12+61
9. structure.
What is firewall? Explain about device driver [3+5]
10. Explain in detail about any one distribution of Linux system t8l
**:1.
-Fr- tr -:
{: *'t -
-..&::f"; _
,
,,:: 1.. !nffiSidr!'i.i*g-'-- "' {1.: ,.-,_
.' i' ; ',i
":: t ' .,;:'
, r, r .
4l'.
,
TRIBHWeNUrtrrynSrry
INSTITUTE OF LGVGI, , BE. I Fdt Mrrkr'
Division Progremme BCT Pess Mrrks 32
2066'l Yeer/Pert Itr/tr Erl 3 hrs.
l. What features does an operating system cxpose on top of the hardware to enhance user
experience? Explain.
2. Disabling intemrpts may help avoid race conditions. Explain its drawbacks as well.
3. Give an algorithm for deadlock detection for a sybtem with multiple resources of the same
kind.
4. What is the major drawback of implementing file system with linked list allocation using
a table in memory? Give an implementation scheme that removes this drawback.
8. What are protection domains? Compare protection domains with access control lists.
***
kL
.I':i";it3i.' ii ;:' .i ,r'-;;if;.! -;;:;i .'-"|.'.--:#il--:'-'
,I:. ..: '' .- rl -r-!tsqr:ryr: '' '
:i.r :;'
fi.'r"'"*.
lI
' -'.)...:
:.ii.: :i+.1'L;!i';-Fs..-r..i' :
.r. i.+-
,:71 . i.i : .
r' - .,.
l. What fea'tures does an operating system expose oniop.of the hardware to enhance user
experience? Explain'.
2. Disabiing intemrpts may help avoid race conditions. Explain its drawbackS as well.
3. Give an algorithm for deadlock detection for a sybtem with mtltiple resources bf the same
4. What is ihe major drawback bf implementing file. system with linl<ed list allocation using
a table in memory? Give an irnplementation scheme that rbmoves thi's drawback.
'
5. Mutiiprogramming'systems have a considerable overhead because of process switching.
r Does multiprogramming indee! optirpize CPU utilization? Illustrate with . a genuine'
. example. . '
6. Differentiate betweenpaging.and segmentation.
7. Expiain in detail about the device independent UO softrvare
8. What are protection domains? Coqrparg protection domains with access control lists.
*** 1.:.
-,,
.,4
-a .-
'!:."
.rt
,.. '!?..';4.4,r-.
',s: i,rii..r. .1
[1+7]
?. Dcscribe the top-down view and bottom-up view of operating system. -:..--+.. - t8I -..----.
':*"-3.*1,i/hat'?Jr!*j;6'froEi1deifrast'd -bf '=ffiltisiod- and -critical 'sectiori? *nxpHiasrr6{f-+4+.i*?r!rt'
t n,u plg. i t-trf so lv e.th e dgc el cgnsum.er problem. .' ....ir;pir,,;.;'-- r.-. --,-..-. --
4. Wrat is processor scheduling?. Explain how Shortest Job First (SJI) and mr{tilevei ..'.-ia'
' ' queuss rvork? Which do vou thick is better anrl whv?
a'.r3^'-'rrft1-Jr..i.,':?j'r..r..!j;+($L:+r.r.ar'.2r,,'1.;-.1,..',.-'i=,'1qpff.t*r.',.'*...-i..f..;.1 ..1
' :--',
Er
'
5. Fiorv can you eliminate waste in variable partltion multiprogramming? Also explain the
drar.,,backs cf such methocls. ,[r++Il]
call you manage n:relnory
7. lVhat are for handling? Explain any two techniques for prevcnting
deadlocl<. [2+5]
8. 'Explain the rvorkiug principles
...".. --.tr.,-.. i:-t..r.{lyi ..
ofI generd.l device driver. ., . ...-. ;
.:...fr
,'''- [6]
.-, 9. . DiiTcrentiate between absolute loader. : '' .r,i.'*i.isiih.-/arapf --lqll.:- ',
[6] -""
M*i- o to I 99.' AidqGs-fL-ffiin*tb*iEffi
cornc in for cylinders in the ord.erjof 87 , 146, 90, 99; 183, 15, 48, 19. Which of the disk
,ni scfra<lulingloigodth*t among FCFS, SSF and'SCaN is Uest'for. the gtyen set of
calculation.
rctiuesis? Justily with "' t8i
--.. -.1
l..\['rite short notes on: (any. two) .-*,..--...-.. -",*. - lZx..ZJ .
a) l-nc',tlcs t,
.
: - +*d< --
-f.
..--.-J____4e..!,,;...:i.:..r.:.__-::...:i-#.'?. ...r:i . t 'i'
41 TzuBHUVAN UM\TERSITY Exam. Back
INSTITUTE OF E}.IGINEERiI\IG LeveI BE FuII Marks ',1 :80
.BCT
Examination Control Division Programme PassMarks 32
. 2065 Kartik Year / Part m/tr Time 3 hrs.
'/ Candidates are required to give their answers in their own words as far as practiqble.
. .:. : -;.; ,.t, -Attempl.-4!!,Questtoni. _
1,;
.,,.,_ .,:. j , :._,:.j.,i--:.1,.,,.".:-:.j,.;:r:-
.1 ,
.. ,/ fllquestions carry iiqual markS. 1..
1. What is an operating system? Can you justify that an operating system acts as a resource
manager?
2. Differentiate between a process.and a thread. What is a process control block? Explain.
3. What is semaphore? What is its use in inter-process communication? Explain. with
'
a
suitable example.
. , 4. I/hat- iq. a .
deadlock? How can. a system recover from deadlock? List all possible
alternativeq and also state the problems ttteywould induce. " ' r ':
5. What is virrual memqry? How is it ppssibie to work on memory spaoe larger than the
dctual available physical memory? Assurne a virnral memory configuration with a page
frame of size 2K, virtual address space of size 32kand physical address space of 16K.
j.iH-
With a page mapping of your choice determine the actual physical lddress corresponding ,l {.. .
6. What are the different tlpes of UO software layers? What are the tasks of device j:id
5_:it
,**li
independent VO softrvare? Explain : :
,tF:
.ri$
7. How does it erimrnate the n1br3m in rinked rist arlocatiol?
#S,ffl:9,ffii?:Jt1";
'.
. 8. What is securiry? Whatarethepossible attacks tpmiosiaetheqnstem?., 1,. .,,,.'. ,
t.
i 9. Differentiate between an absolute and a relocation loader. E-xplain in brief about the boot-
strap loader
i 10. Write short notes on any two:
a) Real time operating system
I b) Login spoofing
c) .Kerrtel
*rl.*