0% found this document useful (0 votes)
30 views

Od Ipad Notes

1) A compiler translates a program written in a high-level language into machine-readable code. It performs several steps like parsing, semantic analysis, code generation and optimization. 2) When a program executes, the operating system loads it into memory and allocates memory for runtime needs like stacks and dynamic memory. It then hands over control to the CPU. 3) A process is an instance of a running program. It has attributes like a program counter, process control block (PCB) storing process state, and resources like CPU registers and open files. The OS manages processes and their execution using these attributes.

Uploaded by

Shivam Sanwaria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Od Ipad Notes

1) A compiler translates a program written in a high-level language into machine-readable code. It performs several steps like parsing, semantic analysis, code generation and optimization. 2) When a program executes, the operating system loads it into memory and allocates memory for runtime needs like stacks and dynamic memory. It then hands over control to the CPU. 3) A process is an instance of a running program. It has attributes like a program counter, process control block (PCB) storing process state, and resources like CPU registers and open files. The OS manages processes and their execution using these attributes.

Uploaded by

Shivam Sanwaria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Lee g -

Profess ? nhozt
compile

ep → Compiler →


enecI=b
¥grEm
tt .
?⃝
?⃝
program e
-9
. T'
#I→ Os → Program
under enecuhn I

program
process
-

process
why ? Proof
'→

work →
↳ user -
.

way

pn
how 0s creates a
preen .


& data to

static memory
Load the program
I
used to initialization
" "

char
*
name = Lakshoy ;

int

a =
② Allocate Runtime
-
stack .

used fur
- peat part of memos .

local variable
,
fh argument
& return value .

'

③ Allocate .

Leap -

→ part of many
used fur

dynamic allegations
⑨ 10 tasks1-

Unint
-

ifp →
handle

olp → off →

error.=→ handle .

f );
" "
stderr, hang
handoff control
⑤ OS to
maizes

C)

*
main
→ .

C)

→{ fyn¥→
_j¥="_÷T¥÷ni
:*


?⃝
Process → mazy

A÷I=→
*

←÷g-→


flow
Stacker &
aloud
statocdota.com#ed-code .
set
stack overflow - Bone case .

Out of de allocate

mneme
money . -

object .
?⃝
'

Attributes of process -

P, pz # → Preen Iabk

→.
PCB
Breen
control BLOCK

÷
:*
÷÷÷÷÷÷=÷÷
" "" *

Bp → Bae punter program Contes →

cR→ New , wait


,
RUN .

Sarestrepeaste
Cpu Registers .

cpu .

DDD open File .


Ust

PCB
=
' 2
AID
Program conifer g

F÷f÷÷⇐¥÷÷=

t
1
I
|theimtmetm
sneak

You might also like