LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2003, 09:13 PM   #1
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Question multithreading libraries


Hello,

I have been recently reading up on network programming (I've never done any network code before) for the sake of writing a Multiplayer Game server.

This has also lead me to think about threads. I have been thinking about using GNU Portable Threads, even though portability is not an issue whatsoever. Or perhaps for the sake of keeping things simple using SDL_threads.

Do the hardened veterans of these boards have any advice relating to this ? Are there any other options which are good ? Any recommended readings or warnings ?
 
Old 06-19-2003, 04:12 AM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Multithreaded coding is a topic in its own right. Make sure you understand things related to concurrency like proper locking, mutexes, re-entrancy and so on.

Glib provides some nice threading constructs for C that make things easy.
 
Old 06-19-2003, 04:28 AM   #3
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Original Poster
Rep: Reputation: 30
Yes threading seems like a whole new level. I plan to learn through mistakes I think there's going to be a lot of them. I have a clue, but that's about it. Another great adventure.
 
Old 06-20-2003, 03:27 AM   #4
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
I agree, use GLib.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Multithreading dlublink Linux - Software 1 10-25-2005 12:23 PM
Slow multithreading with 2.6.13 andy753421 Linux - Software 8 09-16-2005 04:29 PM
Multithreading jayashrik Programming 1 07-20-2005 04:13 AM
java: multithreading ashirazi Programming 5 06-23-2005 09:50 AM
Strange multithreading live_dont_exist Programming 2 05-01-2005 07:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration