Os Mid 1
Os Mid 1
3tem
Mid kert -7
Name - Kuclaykisran
VTU 12/4
ech CSE, U Ye7
Name kudayhinan
VTU- 12/4)
Btech CsE -T Yea
Berils
Due to vU eay SynchuiZationn,
cecetng to lock tsast
So e etrra Cost 4
anogtng e
also paid an the
Rhasrec alate
Keleare SRW Lock Sharracl stole
Name- KLooy kinan
V7U - 1214l
teacherr requires
Ancd he TA
ery lo
breah ten ansring
Studlants
une
T n order to Solve t s , We Con
ereated. Each
are
n skuolents
Pthrreaels,
Zke A teachen
teacben ruurs n
and
Stuelerd,
C
Seponake thrreael
aned khread TO
thein sfate
a k e O an Cormaned
->The iogrurm
ne ramebe.
sblerks Prerteel Ca
Can
-> 7he mumban
nu7
Corraneline ramater
be specthecl as a
inchveleed, e
Pancmakr is not
ingreebanbs, bul
They
They raquire twree
One ngreoben
incbiolly houe only
tey
with hem, whde tha agents randlarnly
allow
obrep e kuo ngraebents
We Can
> Prm the Gien armakbion
7A deaeLock is adelinee as a
State
in uwch each members a roryp
cigarelhe
By his ay deadloch s onmeel 1o
wncuy
te roblern
roblern the odead leck Can
be Porerented by usn9 i n l a cue
Tmethool
one way o uo iol cculan uLell s to
nomben all resowrces, a e to reguire
thed 1oces zregonl esoueces only in
Stitty frnctearng deereening onele7
Name-kudoykiran
VTU 12/4)
Btech-(SE -Yeco
laAim : To Cwrile a
le ko anebbe7
Fon cno
Co
Copy Cortenk
Sytem Calls
uSing
Code
ncluclee silia h>
#irclucle euniskdh>
# incluclee fertd.hz
Htnelude e sdlib h>
Cheun [sol;,
Lang int n
f 0pen lcrgv T],o RDONLY)=: 1| -
3
nr md llr, kl/,
sa))ro)
uhile -ll
Cn=r-1
close tf),
eail (o)
Oulput
gcc-o Sys sys.c
Ccut b. tae
e sultHence e cragram
Fle rom one ile
Coenks
Copy executec!
anel
Cnoller s
IS
CenPLocd Succetyully