Hi Paul, I wrote: > You can go a long way with <pthread.h>. ... > The use of <threads.h> is very similar to the use of <pthread.h>.
In fact, it should be possible to reuse the bulk of the <threads.h> and gnulib 'threads'/'lock'/... modules to provide an implementation of the essential <pthread.h> API on native Windows (both mingw and MSVC). Whereas currently, these functions are stubs in gnulib's <pthread.h>. With this, we would have the essential pthread_* functions implemented on all reasonable portability targets, except Minix. (*) Programs like coreutils 'sort' would be ported to native Windows with no effort. I can work on that, if you have no objections. Bruno (*) Minix has "mthreads". Some volunteer may work on wrapping these in the pthread API.