Results 1 to 3 of 3

Thread: what is exactly difference between process and thread ?

  1. #1
    Join Date
    Aug 2009
    Location
    mumbai
    Beans
    9
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    what is exactly difference between process and thread ?

    sorry for very basic question...
    i am not getting clear picture of what is exactly runs on cpu, it is the thread or process. i read a lot of stuffs but not getting clear idea. sometime they use 'task' keyword for thread or process.
    from whatever i read i got "threads are run in the address space of the respective process, it is easy to switch between threads than processes and it is not expensive too"
    if threads are run on the core, how exactly they are run, where can i get complete information of threads.
    can anyone guide me.

  2. #2
    Join Date
    Nov 2009
    Location
    Bangalore
    Beans
    78
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: what is exactly difference between process and thread ?

    I can explain things, but not to the far end. it will be basic.

    Process the main application you are running. It may contain threads or may not.
    But threads are created by processes or some other threads. It may be created for different different reason. Like from a text editor if you are giving a print, it may start another thread and it may start another process.
    I hope its a little bit clear for you.
    I answered this, since i didnt see any reply for you question. You may get better answers.

  3. #3
    Join Date
    Aug 2009
    Location
    mumbai
    Beans
    9
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: what is exactly difference between process and thread ?

    Thank you for your instant reply... somewhat clear .
    but what is task. i am reading kernel source code, they are frequently using 'task' keyword. whether task=?process or task=?thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •