I know there are several ways to multi thread - but i want to know whats the best (efficiency) - even it would be interesting to know whats the easiest..
ps: i know.. my english is bad
I know there are several ways to multi thread - but i want to know whats the best (efficiency) - even it would be interesting to know whats the easiest..
ps: i know.. my english is bad
Depends entirely upon your operating system, and your compilers support for what ever features it offers. You fail to mention either.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
independent of os and compiler isn't possible?!
No. There are operating systems which have no concept of threads; C is a very general language and so it doesn't cover system-specific features. Things like graphics, sound, threads, etc. are all system-specific and compiler-specific.
Pthreads for Linux is a fairly common C threading library.
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
Your question is too vague to answer considering the complexities of different compilers and operating systems.
The generic answer is
there is no best way, only the ways that
1) you understand
2) work correctly
3) do the job asked
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers
i like the generic answer WaltP
Well, then, there you go!Originally posted by IceBall
i like the generic answer WaltP
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers