Guest User

Untitled

a guest
Feb 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. [pid:13752] This is TTT main program
  2. [pid:13754] This is TTT mgr program, ppid[13752]
  3. [pid:13754] shared memory created, ppid[13752]
  4. [pid:13752] The tttmgr [mgr_pid: 13754] is ready, Creating the players
  5. [pid:13755] This is TTT player program(1), ppid[610]
  6. READY
  7. [pid:13756] This is TTT player program(2), ppid[610]
  8. READY
  9.  
  10.  
  11.  
  12.  
  13. the line in the player program that outputs
  14. printf("[pid:%d] %s(%s), ppid[%d] \n", getpid(), m, processName, getppid());
  15. where m is the string i pass it and process name is taken from argv[0]
Add Comment
Please, Sign In to add comment