[완료]Task, Thread, Process 관계에 대한 질문

myproverbs의 이미지

linux는 유닉스와 달리 Task라는 용어가 있는데
task와 process
task와 thread
이 관계가 많이 혼란스럽습니다

아레 pstree에서
(Ha2,3582 = task gruop, {Ha2} = thread, 나머지=process)숫자 붙어있는것 모두 다 = task
이렇게 해석해도 되는게 맞는것인지 알고 싶고

혹 아니라면
어떻게 다른지에 알고 싶습니다.

init,1
  ├─acpid,3154
  ├─atd,3343
  ├─auditd,2787
  │   ├─audispd,2789
  │   │   └─{audispd},2793
  │   └─{auditd},2788
  ├─automount,3128
  │   ├─{automount},3129
  │   ├─{automount},3130
  │   ├─{automount},3134
  │   └─{automount},3137
  ├─avahi-daemon,3375
  │   └─avahi-daemon,3376
  ├─crond,3278
  ├─cupsd,3211
  ├─dbus-daemon,2980 --system
  │   └─{dbus-daemon},2982
  ├─dhclient,2721 -1 -q -lf /var/lib/dhclient/dhclient-eth0.leases -pf...
  ├─(events/0,8)
  ├─(events/1,9)
  ├─gam_server,3414
  ├─gpm,3262 -m /dev/input/mice -t exps2
  ├─hald,3392
  │   └─hald-runner,3393
  │       ├─hald-addon-acpi,3400
  │       ├─hald-addon-keyb,3406
  │       └─hald-addon-stor,3418
  ├─hcid,2997
  ├─hidd,3102 --server
  ├─hpiod,3170
  ├─irqbalance,2848
  ├─(khelper,10)
  ├─klogd,2831 -x
  ├─(krfcommd,3028)
  ├─(ksoftirqd/0,3)
  ├─(ksoftirqd/1,6)
  ├─(kthread,11)
  │   ├─(aio/0,259)
  │   ├─(aio/1,260)
  │   ├─(ata/0,529)
  │   ├─(ata/1,530)
  │   ├─(ata_aux,531)
  │   ├─(cqueue/0,183)
  │   ├─(cqueue/1,184)
  │   ├─(kacpid,17)
  │   ├─(kauditd,587)
  │   ├─(kblockd/0,15)
  │   ├─(kblockd/1,16)
  │   ├─(kgameportd,1737)
  │   ├─(khubd,187)
  │   ├─(kjournald,554)
  │   ├─(kjournald,2147)
  │   ├─(kmpath_handlerd,2119)
  │   ├─(kmpathd/0,2117)
  │   ├─(kmpathd/1,2118)
  │   ├─(kpsmoused,479)
  │   ├─(kseriod,189)
  │   ├─(kstriped,541)
  │   ├─(kswapd0,258)
  │   ├─(mpt_poll_0,524)
  │   ├─(pdflush,256)
  │   ├─(pdflush,257)
  │   ├─(rpciod/0,2904)
  │   ├─(rpciod/1,2905)
  │   └─(scsi_eh_0,525)
  ├─mcstransd,2446
  ├─(migration/0,2)
  ├─(migration/1,5)
  ├─mingetty,3462 tty1
  ├─mingetty,3463 tty2
  ├─mingetty,3464 tty3
  ├─mingetty,3465 tty4
  ├─mingetty,3466 tty5
  ├─mingetty,3467 tty6
  ├─pcscd,3078
  │   └─{pcscd},3120
  ├─portmap,2871
  ├─python,3175 ./hpssd.py
  ├─restorecond,2812
  ├─rpc.idmapd,2951
  ├─rpc.statd,2913
  ├─sdpd,3001
  ├─sendmail,3236
  ├─sendmail,3245
  ├─smartd,3458 -q never
  ├─sshd,3195
  │   ├─sshd,3522
  │   │   └─sshd,3524
  │   │       └─bash,3525
  │   │           ├─Ha2,3582
  │   │           │   ├─{Ha2},3583
  │   │           │   ├─{Ha2},3584
  │   │           │   └─{Ha2},3585
  │   │           └─pstree,3586 -ahp
  │   └─sshd,3557
  │       └─sshd,3559
  │           └─bash,3560
  ├─syslogd,2828 -m 0
  ├─udevd,621 -d
  ├─(watchdog/0,4)
  ├─(watchdog/1,7)
  ├─xfs,3312 -droppriv -daemon
  └─yum-updatesd,3410 -tt /usr/sbin/yum-updatesd

추가로 여기서 '(', ')'로 둘러싸인게 kernel thread라 둘러싸인건지 에 대해도 궁굼합니다.
formidea의 이미지

Quote:
Another name for a process is a task. The Linux kernel internally refers to processes as tasks.

from http://www.informit.com/articles/article.aspx?p=370047
sev314의 이미지

리눅스* 입장에서는 프로세스가 태스크고 태스크가 쓰레드일 거에요!