Date: Mon, 6 Nov 2000 01:50:48 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: jadream <jadream@chat.ru> Cc: freebsd-questions@FreeBSD.ORG, deischen@FreeBSD.ORG, jasone@FreeBSD.ORG Subject: Re: Is msgrcv() thread-blocking in 4.x? Message-ID: <20001106015047.Q5112@fw.wintelcom.net> In-Reply-To: <3A0667ED.B3074BF6@chat.ru>; from jadream@chat.ru on Mon, Nov 06, 2000 at 11:12:29AM %2B0300 References: <3A0667ED.B3074BF6@chat.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
* jadream <jadream@chat.ru> [001106 00:11] wrote: > Hi ppl! > > I have two processes both multithreaded with threads from one process > comunicating with threads from another using SystemV IPC (msgs & > semaphores). > That used to work well under Linux as threads there are just same as > processes. > But when I came to the process-limit in Linux and had to change for > freeBSD all comes bad. > msgrcv() and semop() are blocking whole processes not appropriate > threads and I'm near the point of blowing up. > I'm using FreeBSD 3.2 for now. > What if I change for 4.x? > Will it work or I have no chance to cope with with that? :0) Heh, you just motivated me to try to fix it... FreeBSD doesn't support it yet, but I have some untested patches that you can try, if you work with me here we can support threads+sysvipc in FreeBSD in the next release. you can grab my patches here: http://people.freebsd.org/~alfred/uthread_sysv.diff just: cd /usr/src/lib ; patch < /path/to/patchfile ; make clean && make depend && make all && make install then try recompiling your app and let me know how it works. You'll need to have a very recent install of FreeBSD 4.x, you can get it from ftp://releng4.freebsd.org/ I've also cc'd some thread guru's because i'm not sure how all this weak/strong reference stuff works nowadays and I wanted them to get a shot at it and a chance to merge it into any ongoing patchsets so I don't stomp on someone's feet. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001106015047.Q5112>