|
This thread is locked; no one can reply to it. |
1
2
|
The Community Needs You. New Tutorial (Threads) |
Oscar Giner
Member #2,207
April 2002
|
AMCerasoli said: 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. AMCerasoli said: 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 . The loading speed is going to be limited by the HDD speed (even if it's an SSD), not by the CPU. -- |
|
1
2
|