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.