Thread: how to run two functions simultaneously ??

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    6

    how to run two functions simultaneously ??

    :
    Code:
    main()
    {
    
     fun1();
    .
    .
    .
    .
    .}
    
    fun1()
    {
    .
    .
    .
    }
    :
    the problem with this function is when i call function fun1 from main() the contol goes to fun1() and my main() will be in pause mode .. is there any way to run both these functions simultaneously ( linux platform ) ?? please help me on this topic ..

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Google pthreads

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Only run if dont find a process
    By tom1 in forum C++ Programming
    Replies: 22
    Last Post: 03-09-2010, 06:27 AM
  2. Run program on webserver
    By Yarin in forum Tech Board
    Replies: 14
    Last Post: 08-28-2009, 11:30 AM
  3. Replies: 7
    Last Post: 11-17-2008, 01:00 PM
  4. Making standalone APP run in background
    By hart in forum Windows Programming
    Replies: 3
    Last Post: 02-27-2005, 11:20 AM
  5. Passing data/pointers between functions #2
    By TankCDR in forum C Programming
    Replies: 1
    Last Post: 11-02-2001, 09:49 PM