100% tevredenheidsgarantie Direct beschikbaar na betaling Zowel online als in PDF Je zit nergens aan vast
logo-home
Class notes Operating System Design Operating System €8,40
In winkelwagen

College aantekeningen

Class notes Operating System Design Operating System

 1 keer bekeken  0 keer verkocht
  • Vak
  • Instelling
  • Boek

**Operating System Design** by IIT Guwahati, under the guidance of **Mr. Jyoti Prakash Mohanta**, is an in-depth exploration of the principles and architecture of operating systems. This resource is tailored for students, researchers, and professionals seeking a comprehensive understanding of the i...

[Meer zien]

Voorbeeld 2 van de 6  pagina's

  • 4 december 2024
  • 6
  • 2023/2024
  • College aantekeningen
  • Jyoti prakash mohanta
  • Alle colleges
avatar-seller
1. Process Concept:
 A process can be thought of as a program in execution. A process will need certain
resources - such as CPU time, memory, files, and I/O devices - to accomplish its task.
 These resources are allocated to the process either when it is created or while it is
executing.
 A process is the unit of work in most systems.
 Systems consist of a collection of processes: operating-system processes execute system
code and user processes execute user code. All these processes may execute concurrently.

The Process:
 A process is a program in execution. A process is more than the program code, which is
sometimes known as the text section.
 It also includes the current activity, as represented by the value of the program counter and the
contents of the processor’s registers.
 A process generally also includes the process stack, which contains temporary data (such as
function parameters, return addresses, and local variables), and a data section, which contains
global variables.
 A process may also include a heap, which is memory that is dynamically allocated during
process run time.




[Process in memory]

 A program by itself is not a process. A program is a passive entity, such as a file containing
a list of instructions stored on disk (often called an executable file).
 In contrast, a process is an active entity, with a program counter specifying the next
instruction to execute and a set of associated resources.
 A program becomes a process when an executable file is loaded into memory. Two
common techniques for loading executable files are double-clicking an icon representing the
executable file and entering the name of the executable file on the command line (as in
prog.exe or a.out).

Sri Jyoti Prakash Mohanta, Asst. Prof. of Computer Science, F.M. Autonomous College, Balasore. Page 1

, Process State:
 As a process executes, it changes state. The state of a process is defined in part by the
current activity of that process.
 A process may be in one of the following states:

 New. The process is being created.

 Running. Instructions are being executed.

 Waiting. The process is waiting for some event to occur (such as an I/O completion or
reception of a signal).

 Ready. The process is waiting to be assigned to a processor.

 Terminated. The process has finished execution.
 It is important to realize that only one process can be running on any processor at any
instant. Many processes may be ready and waiting, however.
 The state diagram corresponding to these states is presented in Figure:




[Diagram of process state]

Process Control Block:
 Each process is represented in the operating system by a process control block (PCB)—
also called a task control block.
 PCB contains many pieces of information associated with a specific process, including
these:
 Process state. The state may be new, ready, running, waiting, halted, and so on.
 Program counter. The counter indicates the address of the next instruction to be
executed for this process.
 CPU registers. The registers vary in number and type, depending on the computer
architecture. They include accumulators, index registers, stack pointers, and general-
purpose registers, plus any condition-code information.


Sri Jyoti Prakash Mohanta, Asst. Prof. of Computer Science, F.M. Autonomous College, Balasore. Page 2

Voordelen van het kopen van samenvattingen bij Stuvia op een rij:

Verzekerd van kwaliteit door reviews

Verzekerd van kwaliteit door reviews

Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!

Snel en makkelijk kopen

Snel en makkelijk kopen

Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.

Focus op de essentie

Focus op de essentie

Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper mailtoganeshbehera. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €8,40. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 48756 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Start met verkopen
€8,40
  • (0)
In winkelwagen
Toegevoegd