Operating systems Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Differentiate between a batch processing system and a multitasking system. Give one application of each system to support your answer

A

A batch processing system is a type of computer system that processes data in large batches or groups. A new task may not be started until the current one is complete.
E.g: Payroll, accounting procedures

A multitasking system Is a computer system that allows multiple tasks or processes to run concurrently.E.g : playing music and drawing sketch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the Round Robin scheduling algorithm

A

In the Round Robin scheduling algorithm, the OS defines a time quantum (slice). All the
processes will get executed in the cyclic way. Each of the process will get the CPU for a
small amount of time (called time quantum) and then get back to the ready queue to wait
for its next turn. It is a preemptive type of scheduling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four characteristics needed for deadlock to occur

A

Deadlock happens when Mutual exclusion,
hold and wait, No preemption and circular
wait occurs simultaneously.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define the bootstrap process

A

The initial process that loads the operating system into the
computer’s main memory (RAM) during the system startup.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Process Management

A

The activities involved in creating, scheduling, and
terminating processes, as well as managing process synchronization and
communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define Interrupt

A

A signal that informs the operating system that an event requiring
immediate attention has occurred.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define Deadlock

A

A situation in which two or more processes are unable to proceed because
each is waiting for the other to release a resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List atleast two ways in which deadlock can be resolved

A

Prevention: Ensuring that at least one of the necessary conditions for deadlock
(mutual exclusion, hold and wait, no preemption, circular wait) does not occur.

Avoidance: Dynamically analyzing resource allocation to avoid unsafe states that
could lead to deadlock.

Detection and Recovery: Periodically checking for deadlock conditions and
recovering by terminating processes or releasing resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does it mean when a process is in the ‘Ready’ State

A

In this process is ready and is waiting to be assigned to the processor so it can run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are some advantages of the batch processing system?

A

It is very difficult to guess or know the time required for any job to complete.
Processors of the batch systems know how long the job would be when it is in queue

 Multiple users can share the batch systems

 The idle time for the batch system is very less

 It is easy to manage large work repeatedly in batch systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly