1 I need to know why every time a process become a session leader then send msg to another process, the receiving process receive corrupted buffer. Ironicly, it will not happen when the sending process not in sesion leader.?
How to create timer unblock a process when they in ready mode such as waiting keybord hit?
1 - something must be wrong with you code
2 - when a process is in ready mode it’s not “waiting” for a keyboard hit. A process is waiting when it’s in receive mode. That being said you can use signals to “unblock” a process (that’s what Ctrl-C) does.