C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-13-2003, 01:11 PM   #1
Registered User
 
Join Date: Jun 2003
Location: Austria
Posts: 55
Multi Threading

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
IceBall is offline   Reply With Quote
Old 07-13-2003, 01:27 PM   #2
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
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.
adrianxw is offline   Reply With Quote
Old 07-13-2003, 02:23 PM   #3
Registered User
 
Join Date: Jun 2003
Location: Austria
Posts: 55
independent of os and compiler isn't possible?!
IceBall is offline   Reply With Quote
Old 07-13-2003, 02:50 PM   #4
Cat
Registered User
 
Join Date: May 2003
Posts: 1,185
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.
Cat is offline   Reply With Quote
Old 07-13-2003, 02:54 PM   #5
Toaster
 
Zach L.'s Avatar
 
Join Date: Aug 2001
Posts: 2,686
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.
Zach L. is offline   Reply With Quote
Old 07-13-2003, 02:54 PM   #6
Been here, done that.
 
Join Date: May 2003
Posts: 1,036
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
__________________
There are only 10 types of people in the world -- those that use binary, and those that don't
WaltP is offline   Reply With Quote
Old 07-13-2003, 02:59 PM   #7
Registered User
 
Join Date: Jun 2003
Location: Austria
Posts: 55
i like the generic answer WaltP
IceBall is offline   Reply With Quote
Old 07-13-2003, 03:01 PM   #8
Been here, done that.
 
Join Date: May 2003
Posts: 1,036
Quote:
Originally posted by IceBall
i like the generic answer WaltP
Well, then, there you go!
__________________
There are only 10 types of people in the world -- those that use binary, and those that don't
WaltP is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
overlapped I/O and multi threading krishnampkkm C++ Programming 2 06-22-2009 03:27 PM
Looking for light cross platform Threading library umen242 C++ Programming 7 03-28-2008 04:23 PM
Multi Threading beon C Programming 5 12-04-2006 09:21 PM
Singleton C++ Class - How to avoid mem leak in multi threading molus C++ Programming 6 06-02-2006 08:32 AM
starting to learn multi threading hanhao C++ Programming 2 06-09-2004 01:44 PM


All times are GMT -6. The time now is 08:45 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22