Introduction to Operating Systems Lecture 2: Processes and Resources

AffablePeachTree avatar
AffablePeachTree
·
·
Download

Start Quiz

Study Flashcards

16 Questions

What is a process in the context of an operating system?

A program at execution

Which component is NOT part of the elementary process components?

Keyboard and mouse

What is a resource in the context of a computer system?

A hardware or software component essential for processing

What does the process control block (PCB) describe?

The current processing state in terms of OS-specific data structures

Which of the following is considered a resource in a computer system?

Memory

What are processes applying for when they request access to resources?

Resources needed to complete processing

What is the function of the Process Manager in kernel operations?

To control process states for safe and efficient resource utilization

What information is typically stored in a Process Descriptor (PCB)?

PID, CPU registers contents, and scheduling information

Which state indicates that a process has completed its execution?

Terminated (Zombie)

What is the function of the Resource Manager in kernel operations?

To allocate resources to processes based on requests and system state

Which type of resource is classified as non-reusable (consumable)?

With respect to their utilization – reusable resources

In the context of resource classification, what are preemptable resources?

  • resources that may be taken away from a process before it has finished using them

What does a Resource Descriptor store information about?

  • resource availability and busyness

What is the main purpose of interrupt handling in kernel operations?

  • Typically results in changing the state of process or resource

What does the 'Waiting (Blocked)' process state indicate?

Process awaits an event or resource allocation

What is the role of the CPU registers contents in a Process Descriptor (PCB)?

To save the process state during a context switch

Study Notes

Process Concept

  • In the context of an operating system, a process is a program in execution, including the current activity, memory, and system resources.

Process Components

  • The elementary process components are: process control block (PCB), program counter, CPU registers, and memory.

Resource Management

  • A resource, in the context of a computer system, is an entity that a process can request access to, such as CPU time, memory, I/O devices, and files.

Process Control Block (PCB)

  • The PCB describes the process, including its current state, memory, and system resources.

Resource Types

  • Examples of resources in a computer system include CPU time, memory, I/O devices, and files.
  • A process requests access to resources when it needs to use them.

Process Manager

  • The Process Manager is responsible for managing processes, including creating, running, and terminating them.

Process Descriptor (PCB)

  • The Process Descriptor (PCB) typically stores information about the process, including its current state, memory, and system resources.
  • The CPU registers' contents are also stored in the Process Descriptor (PCB).

Process States

  • The 'Terminated' state indicates that a process has completed its execution.
  • The 'Waiting (Blocked)' process state indicates that a process is waiting for a resource to become available.

Resource Classification

  • Consumable resources are non-reusable resources, such as network bandwidth and printer paper.
  • Preemptable resources can be taken away from a process, such as CPU time and memory.

Resource Descriptor

  • A Resource Descriptor stores information about a resource, including its type and availability.

Interrupt Handling

  • The main purpose of interrupt handling in kernel operations is to allow the kernel to respond to events, such as I/O completions and timer expiration.

This quiz covers the concepts of processes and resources, process states cycle, resource classification, and the role of threads in modern operating systems. The content is based on the material available at http://wazniak.mimuw.edu.pl, with some translation by Jakub Olejnik.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser