100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Class notes Operating System Design Operating System $8.49
Add to cart

Class notes

Class notes Operating System Design Operating System

 1 view  0 purchase
  • Course
  • Institution
  • Book

**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...

[Show more]

Preview 2 out of 6  pages

  • December 4, 2024
  • 6
  • 2023/2024
  • Class notes
  • Jyoti prakash mohanta
  • All classes
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller mailtoganeshbehera. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53068 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.49
  • (0)
Add to cart
Added