PThreads code complete