File locking
Michalis Kabrianis
kabrianis at hellug.gr
Wed Aug 25 12:52:34 EEST 1999
Geia sas.
Mia erwtisi peri programming (nomizw aneksartita glwssas).
H function flock() parexei advisory lock enos arxeiou. Dystyxws den mporesa na
brw tropo na pw stin open() na elegxei gia kapoio lock (i stin remove()), ara
einai praktika axristo? (efoson advisory kai oxi ypoxrewtiko)
Endiaferomai na elegxw gia lock enos arxeiou, an den einai locked, na to
anoigw kai na to kanw lock, i na to sbinw (analoga me to stadio tou
programmatos).
2 Problimata:
a) Pws elegxw to lock prin anoiksw to arxeio
b) afou i open() kai i flock() einai diaforetikes functions, thewritika yparxei
i periptwsi meta tin open() kai print tin flock() na prospelasei kapoio allo
process to idio arxeio. Auto pws ksepernietai?
TIA
Michalis Kabrianis
P.S. H ylopoiisi tha einai se Perl, alla kai gia tin C den exw brei kati
paromoio.
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list