[Spread-users] SP_join from different tread as SP_receive

John Schultz jschultz at spreadconcepts.com
Fri Jun 15 16:37:43 EDT 2007

I do not know the particulars of the locking implementation forwards and 
backwards.  If memory serves though, I think you are referring to the 
fixed size mutex array that the library uses for synchronization -- it 
modulo's the mailbox # the size of the array to get which mutex to use.

So, yes I do think that with the current implementation different 
connections can end up using the same mutex if you have a lot of file 
descriptors or if the fd numbers get high in your client application.


John Schultz
Spread Concepts
Phn: 443 838 2200

On Fri, 15 Jun 2007, Alec H. Peterson wrote:

> Hi John,
> --On June 15, 2007 16:18:14 -0400 John Schultz <jschultz at spreadconcepts.com> 
> wrote:
>> Yes, you are mistaken. ;)
> Ah so, my mistake.
> However, the mutex handling seems to have a 1/256 chance of having a 
> duplicate lock for two mailboxes in systems with lots of open files, is that 
> correct?
> Alec

More information about the Spread-users mailing list