On Wed, June 20, 2007 9:28 pm, Timo Sirainen <[EMAIL PROTECTED]> said:
> Attached another test program. I don't expect it to print any errors
> with any OS, but I'd like to confirm it for non-Linux SMP kernels.
# ./concurrency
writing, page size = 4096
4: reading, page size = 4096
3: reading, pag
On Thu, 2007-06-21 at 08:06 -0400, Greg Troxel wrote:
> I'm not sure what you expect to happen, but:
>
> fnord gdt 18 ~ > ./concurrency
> 0: reading, page size = 4096
> writing, page size = 4096
> 4: reading, page size = 4096
> 3: reading, page size = 4096
> 2: reading, page size = 4096
> 1: read
I'm not sure what you expect to happen, but:
fnord gdt 18 ~ > ./concurrency
0: reading, page size = 4096
writing, page size = 4096
4: reading, page size = 4096
3: reading, page size = 4096
2: reading, page size = 4096
1: reading, page size = 4096
open(): No such file or directory
open(): No such
Attached another test program. I don't expect it to print any errors
with any OS, but I'd like to confirm it for non-Linux SMP kernels.
(Except for OpenBSD, it doesn't work correctly in it anyway because it
doesn't support mixing write()s and mmap())
Mac OS X for Intel 10.4.9: SMP (Core Duo)
Hi,
> It doesn't compile for Solaris 10:
You can compile it with :
gcc -o concurency -I/usr/ucbinclude -L/usr/ucblib -lucb concurency.c
(on a default Solaris 10 install). Then, you must add /usr/ucblib to your
library search path using crle.
On a dual UltraSparc IIIi running Solaris 10, here is
Attached another test program. I don't expect it to print any errors
with any OS, but I'd like to confirm it for non-Linux SMP kernels.
(Except for OpenBSD, it doesn't work correctly in it anyway because it
doesn't support mixing write()s and mmap())
6.2-RELEASE FreeBSD 2 x Intel(R) Xeon(R)
Hi Timo,
It doesn't compile for Solaris 10:
gcc concurrency.c -o concurrency -Wall
concurrency.c: In function `main':
concurrency.c:40: warning: implicit declaration of function `flock'
concurrency.c:40: error: `LOCK_EX' undeclared (first use in this function)
concurrency.c:40: error: (Each u
On Thu, Jun 21, 2007 at 04:28:17AM +0300, Timo Sirainen wrote:
Attached another test program. I don't expect it to print any errors
with any OS, but I'd like to confirm it for non-Linux SMP kernels.
(Except for OpenBSD, it doesn't work correctly in it anyway because it
doesn't support m
Attached another test program. I don't expect it to print any errors
with any OS, but I'd like to confirm it for non-Linux SMP kernels.
(Except for OpenBSD, it doesn't work correctly in it anyway because it
doesn't support mixing write()s and mmap())
Mac OS X for Intel 10.4.9: SMP (Core Duo)