I wrote:
> A declarative approach per program, i.e. allowing the programmer to
> declare the single-threaded-ness of a program at the beginning of the
> main() function, is not suitable either:
>   ...
>   - It would be fragile and unreliable, because a program can be linked
>     to some libraries that suddenly start to make use of multiple threads.

In fact, I would have expected 'msgfmt' to be a single-threaded program.
But it isn't, and the new thread-optim module caught it:
  msgfmt links to libxml2.
  libxml2 links to liblzma (at least on Ubuntu).
  liblzma has 'pthread_create' in its GOT, thus may create new threads.

Which shows the value of the automatic approach.

Bruno




Reply via email to