lkml.org 
[lkml]   [1999]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: flock broken?
On Sun, 9 May 1999, Manfred Spraul wrote:

Could someone compile the attached program, and
send me the results?

The attached program creates a small shm segment,
a lock file & uses flock() to synchronize the access to
the memory segment.
The probem is that the synchronization fails:
on UP: "./a.out 1000 10" fails after 5-10 second
on SMP (2*PII): "./a.out 1000 2" fails nearly immediately.

hi manfred,

it fails here aswell, within 3-5 seconds or less depending on the
args.

glibc-2.0.7-29
gcc version pgcc-2.91.60 19981201 (egcs-1.1.1 release)
2.2.7-ac2 with raid and devfs
amd k6 233
ext2.

--
Paul Jakma
paul@clubi.ie http://hibernia.clubi.ie
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
fortune:work not a fortune file or directory




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.026 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site