Osy Summer 25
Osy Summer 25
Accounting Information: This information includes the amount of CPU and real time used,
time limits, account numbers, job or process numbers, and so on.
I/O Status Information: This information includes the list of I/O
devices allocated to the process, a list of open files, and so on.
File Management: It includes information about all open files,
access rights etc.
Pointer: Pointer points to another process control block. Pointer
is used for maintaining the scheduling list.
Q) State two features of non-preemptive scheduling 2M
Once CPU is allocated to the process, the process keeps the CPU until it releases the
CPU either by terminating or by switching to the waiting state.
A process switches from running state to waiting state or running to terminated state.
Low scheduling overhead.
Simple to implement and manage.
Less responsive in terms of priority for urgent task.
Q19) Write Unix command for following:
i)create a folder OSY ii) create a file FIRST in OSY folder
iii) List/display all files and directories.
iv) Write command to clear the screen
ANS i) create a folder OSY:
$mkdir OSY
ii)create a file FIRST in OSY folder:
$cd OSY
$cat>FIRST or $ touch FIRST
iii) List/display all files and directories:
$ls
iv) to clear screen:
$clear
2. Tree structure:- In this directory structure user can create their own sub-directories and
directory contains a set of files or subdirectories. All directories have the same internal
format. One bit in each directory entry defines the entry as a file (0) or as a subdirectory
(1). Each process has a current directory.
Q32) Describe any four file attributes
Ans ; File attributes:
Name: The symbolic file name is the only information kept in human readable form.
Identifier: File system gives a unique tag or number that identifies file within file system
and which is used to refer files internally.
Type: This information is needed for those systems that support different types.
Location: This information is a pointer to a device and to the location of the file on that
device.
Q) List components of OS. Explain process management in detail.
List of System Components:
1. Process management
2. Main memory management
3. File management
4. I/O system management
5. Secondary storage management
Q) Define virtual memory
Virtual memory is a memory management capability of an operating system (OS) that
uses hardware and software to allow a computer to compensate for physical memory
shortages by temporarily transferring data from random access memory (RAM) to disk
storage.
Q) Define real time operating system. List its any four applications of it.
The real-time operating system used for a real-time application means for those
applications where data processing should be done in the fixed and small quantum of
time.
Types of real time operating system
1. Hard real-time
2. Soft real-time
Applications: 1. Flight Control System 2. Simulations
3. Industrial control 4. Military applications
Q32) Solve given problem by using SJF and FCFS scheduling algorithm using Gantt chart.
Calculate the average waiting time for each algorithm
Waiting Time
P1=17
P2=3
P3=0
P4=10
Average waiting time=Waiting time of all processes / Number of processes
=(17+3+0+10) /4
=30/4
=7.5 milliseconds (ms)
Gantt Chart FCFS
Waiting Time
P1=0 P2=9
P3=16 P4=19
Average waiting time=Waiting time of all processes / Number of
processes
=(0+9+16+19) /4
=44/4
=11 milli seconds (ms)