Category Archives for System Programming

Readers Writers Problem

Readers writers problem is a classic example of synchronisation problem like dining philosophers problem and producer consumer problem.

30. September 2010 by Jishnu
Categories: C Programming, System Programming | 2 comments

Dining Philosophers Problem

Dining philosophers problem is a classic multiprocess synchronisation problem. Problem is summarised as 5 philosophers sitting at a round table doing 2 things, eating and thinking. While eating they are not thinking and while thinking they are not eating. Each … Continue reading

29. September 2010 by Jishnu
Categories: C Programming, System Programming | Tags: , | 7 comments

Listing directory details

OUTPUT ————– a.out bank.c pi.c ls.c copy_file.c pipe.c . ..

26. September 2010 by Jishnu
Categories: C Programming, System Programming | Tags: , , | Leave a comment

Message passing through pipe

OUTPUT ————– Parent Process ————– Enter the message to child process : hello ————- Child process ————- Message from parent : “hello” Message to patent process : hai ————– Parent Process ————– Message from child : “hai”

26. September 2010 by Jishnu
Categories: C Programming, System Programming | 1 comment