I don't know shit about multithreading so would I gain anything by creating a new thread to save received data or is it the same as writing that stuff into the file right after the recv call?
Wouldn't it be actually slower than the latter?
Name:
Anonymous2007-06-19 16:53 ID:qpAgjvBN
>> /prog/
fix'd
Name:
Anonymous2007-06-19 16:59 ID:jDq7dRef
/b/fag GTFO ^___________^
(Any true /prog/-user knows asking questions here is not a good idea.)
>>6
I didn't even read your post, but I'll do so just to make you angry... Okay, I have some good advice regarding your question, but I will not give it to you.
>>9
Then you clearly want to create another thread with a buffer and have that thread lock while you process stuff in the main thread.
Name:
Anonymous2007-06-19 20:19 ID:o+qFJiMe
Unless the stuff in the main thread relies on the recv'd data, then you're going to block anyway (either on the recv call for single-thread, or block until the critical section in the other thread is completed)