Thread: I need Info

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    67

    I need Info

    I wanna know where could I get any goot tutorials on using fork() and stuff..I mean multi threading. I have never seen a tut on C about that. Can someone point me to the right direction please?

    Thanks!

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    and you probably won't either. read about it in the man pages or get source code for a program that uses it. You need to use google

    http://www.google.com/search?hl=en&q...=Google+Search

  3. #3
    C maniac
    Join Date
    Aug 2004
    Location
    Cyberwarping to Middle Earth
    Posts
    154
    SDL and Windows both have multithreading functions. Windows is very hard to use, so try the SDL if you want.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    blackswan wants to know how to use multithreading, not which systems support it.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    blackswan wants to know how to use multithreading, not which systems support it.
    Well blackswan is going to have to specify which system he is working on.

    Basically, look at pthread_create() for linux or any other POSIX system, and _beginthread() or CreateThread() for Windows systems.

  6. #6
    Registered User
    Join Date
    Apr 2005
    Posts
    67
    First Ill try this multithreading in Linux environment. But all I get searching google is some man pages. I want a tut. Or a book. I got B.W.Kerringan an Denis Ritche book-The C programing language (second edition) ,but threads are left out. I mean wtf? Maybe because the UNIX systems in those days didn't have multi threading support.

    But like ancient dragon said. Im probably all alone with man pages...
    Last edited by blackswan; 09-25-2005 at 05:08 PM.

  7. #7
    Registered User
    Join Date
    Apr 2005
    Posts
    67
    Or maybe there is hope here
    and here

    Thanks for helping!
    Last edited by blackswan; 09-25-2005 at 05:13 PM.

  8. #8
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help displaying info from structure
    By kisiellll in forum C Programming
    Replies: 6
    Last Post: 04-04-2009, 12:51 PM
  2. Question about getting an info class from another Form
    By Joelito in forum C# Programming
    Replies: 0
    Last Post: 10-16-2006, 01:02 PM
  3. Help doing an e-mail program in c...
    By Tyler_Durden in forum C Programming
    Replies: 88
    Last Post: 01-02-2005, 03:12 PM
  4. Binary trees search problem...
    By Umoniel in forum C Programming
    Replies: 2
    Last Post: 02-22-2004, 02:29 PM
  5. Replies: 3
    Last Post: 12-06-2001, 05:30 AM