- Online Community Forums » The Depot » The Community Needs You. New Tutorial (Threads)

This thread is locked; no one can reply to it. rss feed Print
 1   2 
The Community Needs You. New Tutorial (Threads)
Oscar Giner
Member #2,207
April 2002

BTW I didn't know that rand() wasn't thread-safe...

The C standard doesn't impose thread safety. So it's implementation specific. It's thread safe in MSVC if you compile with the multithreaded C runtime (all C functions are thread safe in that case), but IIRC it isn't in gcc.

I thought in one which multiple threads load a lot of images and make the comparison between using or not threads...

The only benefit in loading data from another thread is so that the main thread doesn't block, so you can for example display a small animation in the load screen so the user sees his computer still works :P. The loading speed is going to be limited by the HDD speed (even if it's an SSD), not by the CPU.

 1   2 

Go to: