ZSO Binary Message Queues Three with Name Piped Root Documentation

nr. albumu s4093 Projekt 1 z przedmiotu ZSO Tresc: Zad 5a.

To see better formatted documentation look at BMQTWNPR_docs/html/index.html

Author:
Grzegorz Wierzowiecki
Date:
2007-11

Title: BMQTWNPR Binary Message Queues Three with Name Piped Root

Download & License

Download project BMQTWNPR.zip License you can choose, what you prefer: GNU LGPL, GPL or BSD.

Zadanie 1 z ZSO

Procesy zorganizowane są w zrównoważone drzewo binarne. Liście produkują dane, które poprzez węzły pośrednie przekazywane są do korzenia. Transport odbywa się za pomocą kolejek komunikatów. Wysłanie sygnału do dowolnego procesu powoduje, że ten przekazuje bezpośrednio do korzenia za pomocą named pipes statystyki ze swojego działania, które są wypisywane.

Dalsze opisy po angielsku (przynajmniej próba :P)

Brief description

This program create binary tree, were leafs sends information to their fathers, etc, and data flows to root. When SIGUSR1 received, tree node sends statistical information to root throught named pipe. Root prints it to standard output. Data processing is following: leafs (process on the bottom of three) sends randomly their pids in c-strings to their parents and notices that fact in statistics. Each tree node (parent) receives messages from it's children , writes on the end it's own pid, and sends to it's parent. Also notices that fact in statistics. At any moment received signal implies that report from statistics is generated and send through thenamed pipe to root. Root takes care to redirect it to standard output.

inline_dotgraph_1.dot

Compilation

try:
make help

Usage

 ./Wierzowiecki_Grzegorz_s4093_projekt1.bin height_of_tree
 TipsAfter that, send SIGUSR1 to child processes
 to see child pids try "ps f"
 

See also:
Wierzowiecki_Grzegorz_s4093_projekt1.cpp

main

init

doit


Generated on Sun Nov 25 20:52:25 2007 for ZSO Binary Message Queues Three with Name Piped Root by  doxygen 1.5.4