[Nauty-list] Multithreading

Brendan McKay bdm at cs.anu.edu.au
Sat Jan 14 17:37:56 EST 2012

Hi David, That's not really an example because it can be done with
thread-local variables. It appears now that it is not hard to allow
one nauty invocation at a time per thread. True reentrancy would
only be required if some user-defined procedure called by nauty
wants to make additional calls to nauty. It is plausible, but I
don't know of any examples. (Anyone knowing of one, please tell me.)

Of course, true reentrancy would be the most desirable situation but
it always seemed hard to achieve without a performance hit. Now that
thread-local variables are available, the possibility arises of having
thread-local free lists of dynamic memory.  This is not as trivial as
it seems, but I'm thinking about it.


* David Vevar <david.vevar at gmail.com> [120114 03:49]:
> On Fri, Jan 13, 2012 at 5:36 PM, Brendan McKay <bdm at cs.anu.edu.au> wrote:
> >
> > I don't know of anyone who uses nauty in a strictly reetrant
> > fashion.
> >
> Well, this is not entirely accurate. ;-)
> And here's the proof:
> http://dcsmail.anu.edu.au/pipermail/nauty-list/2004/000220.html
> The date is 22nd of September 2004 and, like the message says, I inquired
> with Brendan even before that date.
> Anyhow, I still think that nauty needs to be reentrant. By defalt!
> Best regards,
> David

> _______________________________________________
> Nauty-list mailing list
> Nauty-list at cs.anu.edu.au
> http://dcsmail.anu.edu.au/cgi-bin/mailman/listinfo/nauty-list

More information about the Nauty mailing list