Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Flock, Seek & WinNT

by pfaut (Priest)
on Dec 30, 2002 at 17:44 UTC ( #223099=note: print w/replies, xml ) Need Help??


in reply to Re: Flock, Seek & WinNT
in thread Flock, Seek & WinNT

Hard to say if it will work on Win98, since that OS was never designed with multi-user access in mind.

An operating system does not have to be multiuser to need interlocks. flock() is for controlling simultaneous access which is possible with any multitasking operating system. Windows 95/98 are both (somewhat) capable of multitasking.

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Replies are listed 'Best First'.
Re: Re: Re: Flock, Seek & WinNT
by bart (Canon) on Dec 31, 2002 at 10:42 UTC
    Hard to say if it will work on Win98, since that OS was never designed with multi-user access in mind.
    An operating system does not have to be multiuser to need interlocks. flock() is for controlling simultaneous access which is possible with any multitasking operating system. Windows 95/98 are both (somewhat) capable of multitasking.
    Yes, but still... Perl's flock() causes a fatal error on Win98:
    flock() unimplemented on this platform
    The idea to just stuff it in, "Hey I did my part", just doesn't work. Which is a shame.
Re: Re: Re: Flock, Seek & WinNT
by dmmiller2k (Chaplain) on Dec 31, 2002 at 14:49 UTC
    An operating system does not have to be multiuser to need interlocks.
    Agree++. Simultaneous access may be provided by a network, assuming the file in question is on a server or in a shared directory on the local machine.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://223099]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2023-12-01 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?