B. Tech. II – I
z z z z
UNIT - 1 z z
Operating System Overview and Process Managem
z z z z z
ent
,1z.zDefinezSystemzCallz?zWhatziszuserzmodezvszkernelzmodez?zWhatzareztheztypeszofzsystemzc
allsz ,zlistz fewzofzthezsystemzcallszunderzeachzcategoryz?
Ansz.
SystemzCallz:
Azsystemzcallziszazrequestzfromzcomputerzprogram/softwareztozanzoperatingzsystem’szkernel.zSys
temzcallszprovidezanzinterfaceztozthezserviceszmadezavailablezbyzanzoperatingzsystem.
UserzMode KernelzMode
Userzmodeziszthezmodezinzwhichzthezapplication Kernelzmodeziszthezprivilegedzmodeztozwhichzt
szarezrunning hezcomputerzenterszwhenzaccessingzhardwarez
resources.
Thezsystemziszinzuserzmodezwhenzthezoperatin Thezsystemzstartszinzkernelzmodezwhenzitzboot
gzsystemziszrunningzazuserzapplicationzsuchzasz szandzafterzthezoperatingzsystemziszloaded,zitzex
handlingzaztextzeditor. ecuteszapplicationszinzuserzmode.
Theztransitionzfromzuserzmodeztozkernelzmod Thesezarezinterruptzinstructions,zinputzoutputz
ezoccurszwhenzthezapplicationzrequestszthezhel managementzetc.zIfzthezprivilegedzinstruction
pzofzoperatingzsystemzorzanzinterruptzorzazsyst szarezexecutedzinzuserzmode,zitziszillegalzandzaz
emzcallzoccurs. trapziszgenerated.
TypeszOfzSystemzCallsz:
Herezareztheztypeszofzsystemzcallsz−
ProcesszControl
Thesezsystemzcallszdealzwithzprocesseszsuchzaszprocesszcreation,zprocesszterminationzetc.
FilezManagement
Thesezsystemzcallszarezresponsiblezforzfilezmanipulationzsuchzaszcreatingzazfile,zreadingzazfile,zwritingzint
ozazfilezetc.
DevicezManagement
Thesezsystemzcallszarezresponsiblezforzdevicezmanipulationzsuchzaszreadingzfromzdevicezbuffers,zwritingzi
ntozdevicezbufferszetc.
InformationzMaintenance
Thesez systemz callsz handlez informationz andz itsz transferz betweenz thez operatingz systemz andz thez userzprogram
.
Communication
Thesezsystemzcallszarezusefulzforzinterzprocesszcommunication.zTheyzalsozdealzwithzcreatingzandzdeletingzaz
communicationzconnection.
,System Calls Under Each Category :
z z z z z
, 2z.DefinezOSz?zListzfewzOSzservicesz?zWhatzareztheztypeszofzOSz/EvolutionzofzOSz?zAns.
OperatingzSystemz:
AnzoperatingzsystemziszazSystemzSoftwarezthatzcontrolszthezexecutionzofzapplicationzprogramsza
ndzactszaszanzinterfacezbetweenzthezuserzofzazcomputerzandzthezcomputerzhardware.
OSzServicesz:
ServiceszprovidedzbyzOSzarez–
1).UserzInterfacez:
OSzprovideszeither
a) Commandzlinezinterface
b) Batchzbasedzinterface
c) Graphicalzuserzinterface
2).ProgramzExecutionz:
ThezOSzmustzhavezthezcapabilityztozloadzazprogramzintozmemoryzandzexecutezthatzprogra
m.zFurtherzmorezthezprogramzmustzbezableztozendzitszexecutionzeitherznormallyzorzabnormally.
3).Filezsystemzmanipulationz:
Programszneedsztozbezreadzandzthenzwritezthemzintozfileszandzdirectories.zFilezHandlingz
processzofzanzOSzallowszusersztozcreatezandzdeletezfilezbyzspecificznameszalongzwithzextensions.
4).InputzandzOutputzoperationsz:
AzprogramzwhichziszcurrentlyzexecutingzmayzrequirezI/Ozwhichzmayzivolvezfilezorzot
herzI/Ozdevices.zForzefficiencyzandzprotectionzuserszcantzcontrolzIOzdevices.zSo,zthezOSzpro
videszazmeanztozdozI/zoperationszwithzanyzfile.
5).CommunicationzandzServicez:
Processzneedztozbezswapzorzsharezthezinformationzamongzthem.zProcesszexecutingzonzsa
mezcomputerzsystemzorzanzanotherzcomputerzsystemzcanzcommunicatezwithzeachzotherzusingzO
Szsupportz.zThiszcommunicationzcanzbezdonezusingzsharedzmemory:
6).ResourcezAllocationz:
Whenzmultiplezjobszarezrunningzconcurrentzresourceszmustzneddztozbezallocatedztozea
chzofzthem.zResourceszcanzbezmainzmemoryzstoragez,zfilezstoragez,zIOzdevicesz,zetc.zCPUzsche
dulingzroutineszarezusedztozestablishzanzefficientzwayzofzutilizationzofzCpu.
7).ErrorzDetectionz:
Errorszmayzoccurzwithzinzcpuz,zmemoryzhardwarez,zIOzdeviceszandzinzthezuserzprogram.zForzeachz
typezofzerrorz,zOSztakeszadequatezactionzforzensuringzcorrectzandzconsistentzcomputing.