printf
Заранее спасибо.
LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version
This means that iostream objects, with the exception of stream buffers, can be shared between threads of execution using a simple mutex object without explicit locking. The locking mechanism is enforced at the stream level. Therefore, all operations carried out on the stream are multithread safe, including the following:
Thread 1: Thread 2:
cout << "Thread 1" << endl; cout << " Thread 2" << endl;
Так с printf() такая хрень прокатит? Я так понял, что это только для iostream-объектов?
Посмотри Example на _beginthread() там в потоках printf() используется без всяких синхронизаций.