Like Tree4Likes

threads vs procceses

This is a discussion on threads vs procceses within the Tech Board forums, part of the Community Boards category; True. But you have two runs sorted. How are you going to get the whole array sorted? An easy solution ...

  1. #16
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    True. But you have two runs sorted. How are you going to get the whole array sorted? An easy solution would be merging the two runs.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  2. #17
    Registered User
    Join Date
    Jul 2012
    Location
    Australia
    Posts
    242
    Quote Originally Posted by std10093 View Post

    However, when I lied on the bed, I thought that fork generates a new process and the child process is running -in parallel (??)- with the parent process.
    When you lie on the bed, you should only be thinking about Greek girls. Hahaha.
    std10093 and laserlight like this.
    IDE: Code::Blocks | Compiler Suite for Windows: TDM-GCC (MingW, gdb)

  3. #18
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    That's a good advice I guess!!!
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 22
    Last Post: 12-14-2012, 10:00 AM
  2. Threads , how? Portable Threads Library?
    By adderly in forum C++ Programming
    Replies: 3
    Last Post: 12-15-2011, 06:54 AM
  3. Threads!
    By bradszy in forum Windows Programming
    Replies: 4
    Last Post: 02-21-2008, 08:54 PM
  4. threads
    By l2u in forum Windows Programming
    Replies: 4
    Last Post: 08-25-2006, 12:06 PM
  5. a point of threads to create multiple threads
    By v3dant in forum C Programming
    Replies: 3
    Last Post: 10-06-2004, 09:48 AM

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