Documente Academic
Documente Profesional
Documente Cultură
3]
It is depends on networking. Distributed system is used to share resource on network.
Network protocol and network adapter are need for distributed systems.
Types of network
LAN – Local area Network, exits with a room, a floor, or same buildings.
MAN – Metropolitan Network, could link buildings within a city.
WAN – Wide Area Network, usually exists between buildings, cities, or countries.
Transmission media that includes, copper wires, fiber strands, and wireless transmission
between satellites, dishes, and radios. Blue tooth and Infrared can be used for short
distance networking.
A. Client Server systems
Terminal (Client system) connected to centralized system, centralized systems act as
server systems to satisfy requests generated by client systems.
There are two types of system
i. Computer server systems – provide an interface to which clients can send request to
perform an action.
ii. File server systems – provide a file system interface where clients can create, update,
read, and delete files.
B. Peer-to-Pear systems.
It has a collection of processors that do not share memory or a clock.
Each processor has its own local memory and they communicate with one another
through various communication lines such as buses or telephone lines. These systems are
also refereed to as loosely coupled systems.
process concepts.[1.7]
An operating system executes a variety of programs:
l Batch system – jobs
l Time-shared systems – user programs or tasks
Textbook uses the terms job and process almost interchangeably.
Process – a program in execution; process execution must progress in sequential fashion.
A process includes:
l program counter
l stack
l data section
l heap
4. Write notes on process state.
As a process executes, it changes state
Ø new: The process is being created
Ø running: Instructions are being executed
Ø waiting: The process is waiting for some event to occur
Ø ready: The process is waiting to be assigned to a process
Ø terminated: The process has finished execution
5. Explain about Process state transition.
i. when a job admitted to the system, a corresponding process is created and inserted at
the back of the ready list.
ii. The the process moves to the ready list.
iii. When the process reaches ready list it uses the CPU.
iv. Then it is in the running state.
v. Dispatching – transition from ready to running.
vi. Time run out – Ready -> running state.
vii. Running -> waiting state (blocked ) if a running process initiates an input / output
operation, process is transferred to waiting state.
viii. Blocked -> ready state The transition is wakeup.
6. Explain about Process control Block.
OS maintains information about every process in a data structure called a process control
block
Scheduling Criteria.[1.9]
CPU utilization
ü keep the CPU as busy as possible
ü In real-time 0 to 100 % CPU utilization possible.
ü 40% (lightly loaded system) to 90% ( heavily loaded system) CPU utilization
Throughput
ü The number of processes completed per time unit.
ü For long Process – this rate may be 1 process per hour.
ü For short process - might be process per hour
Turnaround time.
ü How long it takes to execute that processes.
ü The Interval from the time of submission of a process to the time of completion is the
turnaround time.
Waiting time .
ü Amount of time a process has been waiting in the ready queue
Response time
ü Amount of time it takes from when a request was submitted until the first response is
produced, not output (for time-sharing environment)
1. What are the different types of schedulers? Briefly explain them
There are three types.
i. Long term scheduler
ii. Short term scheduler
iii. Medium term scheduler
Long-term scheduler (or job scheduler)
ü Selects which processes should be brought into the ready queue.
ü Job scheduler selects processes from the queue and loads them into memory for
execution.
ü Long term scheduler should select a good process mix of processes to better the system
performance such as I/O-bound process and CPU-bound process. I/O-bound process -
spends more time doing I/O than computations, many short CPU bursts.CPU-bound
process - spends more time doing computations; few very long CPU bursts.
ü The long-term scheduler controls the degree of multiprogramming
ii. Short-term scheduler (or CPU scheduler)
ü Selects which process should be executed next and allocates CPU.
ü Short-term scheduler is invoked very frequently (once every 100 milliseconds)
ü must be fast or else waste too much time scheduling and not executing
ü Short time scheduler is faster then long term scheduler.
iii. Medium term Scheduler
ü Time sharing OSs may introduce a medium term scheduler
ü Removes processes from memory (and thus CPU contention) to reduce the degree of
multiprogramming – swapping
ü Swapping may be needed to improve the process mix or to free up memory if it has
become overcommitted
Scheduling Criteria.[1.9]
CPU utilization
ü keep the CPU as busy as possible
ü In real-time 0 to 100 % CPU utilization possible.
ü 40% (lightly loaded system) to 90% ( heavily loaded system) CPU utilization
Throughput
ü The number of processes completed per time unit.
ü For long Process – this rate may be 1 process per hour.
ü For short process - might be process per hour
Turnaround time.
ü How long it takes to execute that processes.
ü The Interval from the time of submission of a process to the time of completion is the
turnaround time.
Waiting time .
ü Amount of time a process has been waiting in the ready queue
Response time
ü Amount of time it takes from when a request was submitted until the first response is
produced, not output (for time-sharing environment)