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

    Join Date
    Sep 2012
    Posts
    13
    Rep Power
    0

    Concept of thread and process in linux


    These lines are from a popular book of linux.

    "Linux has a unique implementation of threads.To the Linux kernel, there is no concept of a thread. Linux implements all threads as standard processes.The Linux kernel does not provide any special scheduling semantics or data structures to represent threads.
    Instead, a thread is merely a process that shares certain resources with other processes."
    I would like to know
    Is there any way how a program written using fork() is represented in memory to that of a thread.

    I mean some kind of command or tools shows the info about the process/threads running.

    I just started learning linux internal, and i am more worried about the questions like "difference process and thread in interview".
    Last edited by ccsr; October 11th, 2012 at 09:02 PM. Reason: reframing the question
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Location
    India
    Posts
    95
    Rep Power
    4
    use command ps -e -T to list all thread and process running in ur system

IMN logo majestic logo threadwatch logo seochat tools logo