「ipcs -s -i」のpid 0の意味」

「ipcs -s -i」のpid 0の意味」

これを参照してください質問、特に出力の場合、ipcs -s -i 65536pid 0はどういう意味ですか?

たとえば、私のシステムでは次のようになります。

# ipcs -s

------ Semaphore Arrays --------
key        semid      owner      perms      nsems     
0x02004393 5013511    user_one   744        1         
0x53020010 753673     user_two   744        1         


# ipcs -s -i 5013511

Semaphore Array semid=5013511
uid=702  gid=501     cuid=702    cgid=501
mode=0744, access_perms=0744
nsems = 1
otime = Not set                   
ctime = Mon Sep  5 17:35:42 2016  
semnum     value      ncount     zcount     pid       
0          0          0          0          0         

ベストアンサー1

0 有効なPIDではありません。 SysVセマフォの場合、これはsemopまだ呼び出されたプロセスがないことを意味します。

ゼロ以外の値になると、セマフォ配列から特定のセマフォを呼び出すpid最後のプロセスになります。semop

おすすめ記事