Professional Documents
Culture Documents
Os Notes
Os Notes
Os Notes
opeaing &ystem
)operchinq Sstem is a collechion
ot Set of program ohich manages althe
Nesources ot Ahe computer &stem.
ii) An operautinq 8stem iS aSottuoame ihich.
pextorms a l the basic tosKS like +ile manoaement
memor Mandgement frOcess nncnaq.ement
handlinc input and outputend controlema
peipheral clesices Such aS diss, crives &
inters
i) An_operakine Sstem is an inteaace betsaeen
Computer oaerLand computer hordocme
Multithore.cicling.
Thexe are three mocle
MamY-to- one mode
One-0-one mode
9 MaTy*omany mocdel
Kerne
-Kerme thread
1)Mcips many USeT-level threacs to one
Kene threac
1) Threcd management is clone by Ahe threod
iromyin user 3pace, Soit is elticient
limtatonS Ahreccl
9Theentire process s i bloCK o
Makes ablocKinq 8Stem Call
access the Kernel o a
ont one hread can
ime muitithread Cmeonable o un
pcmaull on muutipoeskorg.
2 one-+0-one moclel_
OSer thread.
Bedch operatina`qtem.
opeTeutimna
Tob 2-
3stem ecteh-
Tobn cteh
AcdvantaeS
T i S useful hen LDeU0OXKInqu th large
erage
hich Can tcuke more ime io execute
Disacduanhge.
Oncee
oDCe the job is Submittec,the user clicl nct
hawe any intraction oith it
3 Define the toltouoing term
)eritical Section
Bcutch opercutingSyStem
2 ApplcationOSeIG
These are usens oho OSethe spexCLkna Stem
U n ppliccHon cncd pertorm tocK
) Applieation oser is a ypicaly end. userThey
Use SStem -to pertorm clay-to-clay HSK Such
bouOsinc he ebeditinc docurment cand
aS
Senclin emal.
ii)The e on he operoing &stem
provicleclUSexAriendlinterfa.ce
Opexctinq CommendS CAn be axouped idto
Sevexal unchtional closses ncludinq
Conrolcommand&S
This command& are used
to Conhrol the behoiOCor he Sgherm. Such
as StaxkingOr Sioppng a rocesS shuthina
dlouonthe SStem, or Chanainq neSystemn
Seting-
Tnputloutput (Tla) ComMAnd
i This CommmandS Ore
usesto conhrole theAoL ofdata bettaeen
he Stem anc externe cleNicES_,
Exomele opennqcncd cloçeinale TeaclinaA
CAnd uithina clete rintingdacument
3)EleMancgernent Commanck
This commandS eure
Sedto mancgeie cAnd elrecomes, Such
CSCxeahnq Tenamingcleleting Copyn
mong e
) NekDork CommeAnc
These Commanc are usecl
netcooTKTelatec unchionSuch aS
mcncgee.
manage
Cenneckns
ectinG t o anetkioxk Sendinqanc eceve eer
nehiorIS ContaurAngnetiork SeHur
dctaover
stem Administration CommCandS.
Thete CESnMancl
odministraiar 0Per
Oreused by Sslem
CAcminStrcutive tosk Such CSOancqincUser
acc.ount monitoring SStem pertormhance Dstalin94
Sattuocreupclate
CommuniacttonCommcinds
These commandS are
Osecl o conmmunicate itbother oSer or
SStem Such aS Senclinaand_mecevinq email
chathos ithsther USex
PTOCesS Shate
NeD
RunDing
0cutn9
Recid
TexminGutec
exit
acmittec terminated
nterupt
ready unnng)
ShetuteT dispateh7
event or Tlo camplekion Ilo uDuit
O
aiting event
Neud
ThisiS the sicate ohenthe procesS has
just heen crecitecdTt i8 in1tial Siate in the
rocesS fe Cycle
Process Stcute
.
PrOcess number
Program Counter
Reqister
memorY umt
ist of one e
Progrum counter:
Tt Store acklyess of the next
InstucHon which is to be executecl
4)process Number
USed to uniquel identify each
prOcesgS
or Pncess in memot
execwtion
i AprocesS is basically a program in
muSE DCresg
The execuution o Oproces
i n Sequential fashion
text ile
e orite our computer pogramsina
thisprogran perfo
ondudhen de execute
StaiCk
Heap
dcutC
xt
1) StocK
The proc.ess StaicK ConBcins the tempory
deito such as methocl/unchion pcrcumete rekuen
addhres Onc local variables.
9HeaP
This ischnamically cllaccuted memary
OpTOCess during run time
CTitHcal Section
EcAch process has aseament of
Code Ccalled a Critice SecHion Tn udhich the
pacessmay he changing Common icKriables
pcdcutinq a able uoritingO 4ie n d so on
2) Progress
T no ProcesS iS executing initS
ftme
Cmticoal Section ondSome cut t h e u t ome
Cmtieal8ecioD8
OCesS wish to enter their
oait indettnitelyto
Shoulc not have to
itenterr it
8) Bounded wciting
There existso bauncl or limit
On the number at that ather rocesS
timeS
C r e cllouo.ed t o enter Citic Section a t t e ra
rocesS has madeC request to enter criHCAL
Sectian cnd before critice Seckion
MuItiprogammingopexeuimq SYStem
) MuHproqrcimmin OS
SCin Cability 0 execute
more hcn one pmoaeum ysing Single pracesgoYr.
mcchine.
opereuting Sistemn
Job 4
Job
Tob N
Emehy SpeiCe
Acvcantages
1 feist prOCeSSing
2 efficiency improvecd
More economic System.
DiS-Acuantagel L
Compliccted operaing 3Stem
Lerge main memory require
C Ce the tuDO bxoad clCECeSat OSerC
D ystem Services 3 Briety explaun
any one afthemn
Semciphoxe
Semaphore t _cre intesm scmicable
theat r e used to Sotve +he CiHC SecHona
Problem by Usina tuoo citomic opercution eaeut
wcut ond sigmno theat are osec ox pracesSS
Synchronizcukion
There Cre LOO Ape ofSemephare.
1) Counting Semaphore
9 Bincny Senmaphore
) Counting Semeghore
T t Can YCYge Over on
umrestricted clomein Countinq Semcaphore can be.
use to Comtrole cccesS o
used ie resource
ConstSting o inite number_of instances
9) Bincmq Samaphore
Con ange only betuoeen
o and A Bincr Samaehore coan be ose d e
oith CxtHcal Seclion poblem tor nulipcue
pYOCESSS
AtomiC opemcHOn
uDeit (S)
white CS<=o):
Sincl
The signa apemion increment the NClue
CIYOument
Signcl (S)
St+