创建线程变进程
奇怪问题请教,创建线程变进程
测试序如下:
(1)创建2个线程,结果得到4个进程
(2)PS结果
(3)在arm开发板上出现,在PC机上完全正常
(4)是否与编译器有关,还是与内核核心有关
~ $ ps
PID Uid VmSize Stat Command
1 root 360 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
34 root SW< [kblockd/0]
37 root SW< [cqueue/0]
41 root SW< [ata/0]
42 root SW< [ata_aux]
50 root SW< [khubd]
53 root SW< [kseriod]
73 root SW [pdflush]
74 root SW [pdflush]
75 root SW< [kswapd0]
76 root SW< [aio/0]
163 root SW< [mtdblockd]
225 root 652 S < udevd --daemon
235 root SW< [rpciod/0]
264 root SW< [hieth_skber]
266 root SWN [jffs2_gcd_mtd3]
268 root SWN [jffs2_gcd_mtd4]
270 root SWN [jffs2_gcd_mtd5]
272 root SWN [jffs2_gcd_mtd6]
305 root SW< [scsi_eh_0]
308 root SW< [scsi_eh_1]
686 root 556 S -sh
846 root SW< [kjournald]
849 root SW< [kjournald]
856 root &nb