#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Fork in thread...


    Hi friends,

    can any one tell me, Suppose a new thread is created, within that thread we use a system call called fork(), if new process contains two threads or one?

    Regards,
    VardhanReddy.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    thread or process ?


    Originally Posted by vardhanReddy
    Hi friends,
    if new process contains two threads or one?
    New process will be created if fork() system call is used.
    to create a new thread in Linux you have to use "pthread_create" function more is available, please Google "POSIX thread (pthread) libraries"

IMN logo majestic logo threadwatch logo seochat tools logo