Osy Question Bank Unit 3 To 6 (22516)
Osy Question Bank Unit 3 To 6 (22516)
Osy Question Bank Unit 3 To 6 (22516)
(02M)
Processes can't be assigned to memory blocks due to their small size, and the memory
blocks stay unused.
A computer can address more memory than the amount physically installed on the system.
This extra memory is actually called virtual memory and it is a section of a hard disk that's
set up to emulate the computer's RAM.
2)Kill:
Kill pid
8. Describe I/o burst and CPU burst cycle with neat diagram. (04M)
The OS can use different policies to manage each queue (FIFO, Round Robin, Priority,
etc.). The OS scheduler determines how to move processes between the ready and
run queues which can only have one entry per processor core on the system; in the
above diagram, it has been merged with the CPU.
16. With suitable example, describe any one free space management
technique. (04M)
Bitmap
This technique is used to implement the free space management. When the free space is
implemented as the bitmap or bit vector then each block of the disk is represented by a bit.
When the block is free its bit is set to 1 and when the block is allocated the bit is set to 0.
The main advantage of the bitmap is it is relatively simple and efficient in finding the first
free block and also the consecutive free block in the disk. Many computers provide the bit
manipulation instruction which is used by the users.
(number of bits per words) X (number of 0-value word) + Offset of first 1 bit
For Example: Apple Macintosh operating system uses the bitmap method to allocate the
disk space.
Advantages:
Disadvantages:
This technique requires a special hardware support to find the first 1 in a word it is
not 0.
This technique is not useful for the larger disks.
For example: Consider a disk where blocks 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 17, 18, 25,26, and
27 are free and the rest of the blocks are allocated. The free-space bitmap would be:
001111001111110001100000011100000