Osy w22 Even
Osy w22 Even
(Autonomous) (Autonomous)
(ISO/IEC - 27001 - 2005 Certified) (ISO/IEC - 27001 - 2005 Certified)
Any two
f) Write syntax of following commands- 2M
Ans. Parameters Paging Segmentation
relevant (i) Kill
differences (ii) Sleep 1M for each
Individual In Paging, we break a In the case of – 1M each Ans. i) kill correct
Memory process address space Segmentation, we break Syntax: kill Pid
syntax
into blocks known as a process address space
pages. into blocks known as ii) sleep
sections/segments. Syntax: sleep NUMBER[SUFFIX]…
Memory Size The pages are blocks The sections/segments sleep OPTION
of fixed size. are blocks of varying g) List any four file operations. 2M
sizes. Ans. Creating a file
Accountability The OS divides the The compiler mainly
Writing a file: Any four
available memory into calculates the size of operations
Reading a file:
individual pages. individual segments, ½ M each
their actual address as Repositioning within a file
well as virtual address. Deleting a file
Speed This technique is This technique is Appending new information to the end of the file
comparatively much comparatively much Renaming an existing file.
faster in accessing slower in accessing Creating copy of a file, copy file to another I/O device such as
memory. memory than Paging. printer or display
Size The available memory The user determines the
determines the individual segment 2. Attempt any THREE of the following: 12
individual page sizes. sizes. a) Explain Time sharing O.S. 4M
Fragmentation The Paging technique The Segmentation Ans. In time sharing system, the CPU executes multiple jobs by switching
may underutilize some technique may not use among them. The switches occur so frequently that the users can
of the pages- thus some of the memory interact with each program while it is running. It includes an
Page 3 / 21 Page 4 / 21
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous) (Autonomous)
(ISO/IEC - 27001 - 2005 Certified) (ISO/IEC - 27001 - 2005 Certified)
Page 7 / 21 Page 8 / 21
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous) (Autonomous)
(ISO/IEC - 27001 - 2005 Certified) (ISO/IEC - 27001 - 2005 Certified)
released. The preempted resources are added to the list of resources The directory contains a pointer to the first and the last blocks of
for which the process is waiting. Process will be restarted only when Diagram
the file. Optional
all the resources i.e. its old resources, as well as the new ones that it is To create a new file, simply create a new entry in the directory.
requesting will be available.
The following figure shows the linked allocation.
4.Circular Wait
Circular-wait condition never holds is to impose a total ordering of all
resource types, and to require that each process requests resources in
an increasing order of enumeration.
Let R = {R1, R2, ..., Rn} be the set of resource types. We assign to
each resource type a unique integer number, which allows us to
compare two resources and to determine whether one precedes
another in our ordering. Formally, define a one-to-one function F: R
_ N, where N is the set of natural numbers.
Page 11 / 21 Page 12 / 21
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous) (Autonomous)
(ISO/IEC - 27001 - 2005 Certified) (ISO/IEC - 27001 - 2005 Certified)
Page 15 / 21 Page 16 / 21
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous) (Autonomous)
(ISO/IEC - 27001 - 2005 Certified) (ISO/IEC - 27001 - 2005 Certified)
6. Attempt any TWO of the following: 12 b) Consider the following memory map and assume a new process 6M
a) Solve given problem by using 6M P4 comes with memory requirements of 6 KB.
(i) Pre-emptive SJF Locate (Draw) this process in memory using. Each fit
(ii) Round Robin (Time Slice = 3 ms) i) First fit diagram 2M
Calculate average waiting time using Gantt Chart ii) Best Fit
iii) Worst Fit
Page 19 / 21 Page 20 / 21