Сообщения и пульсы в QNX Neutrino. Передача сообщений между родственными процессами. Передача сообщений с помощью MsgSend, страница 6

Server get message = NewAgent 9 Hi_Client_from_Agent!

Server get msg from Agent

CLIENT!!!

Agent get 10

Client get = Hi_Client_from_Agent!

Server get message = NewAgent 10 Hi_Client_from_Agent!

Server get msg from Agent

CLIENT!!!

Client get = Hi_Client_from_Agent!

Agent get 11

Agent get 12

Server get message = NewAgent 11 Hi_Client_from_Agent!

Server get msg from Agent

Server get message = NewAgent 12 Hi_Client_from_Agent!

Server get msg from Agent

CLIENT!!!

Client get = Hi_Client_from_Agent!

CLIENT!!!

Client get = Hi_Client_from_Agent!

Agent get 13

Server get message = NewAgent 13 Hi_Client_from_Agent!

Server get msg from Agent

CLIENT!!!

Client get = Hi_Client_from_Agent!

[7] + Done                 _._/_c_l_i_e_n_t

[6] - Done                 _._/_c_l_i_e_n_t

[5]   Done                 _._/_c_l_i_e_n_t

[4]   Done                 _._/_c_l_i_e_n_t

[3]   Done                 _._/_c_l_i_e_n_t

[2]   Done                 _._/_c_l_i_e_n_t

#

Сообщение из терминала

запущенные агентов

Свободные агентов

Обрабатываемые запросы клиентов

Запросы в очереди ожидания

Agent Start

Server get message = NewAgent 0 not_msg

Server get msg from Agent

1

1

0

0

Agent Start

Server get message = NewAgent 0 not_msg

Server get msg from Agent

2

2

0

0

Agent Start

Server get message = NewAgent 0 not_msg

Server get msg from Agent

3

3

0

0

Agent Start

Server get message = NewAgent 0 not_msg

Server get msg from Agent

4

4

0

0

Agent Start

Server get message = NewAgent 0 not_msg

Server get msg from Agent

5

5

0

0

./client& ./client& ./client& ./client/_ _& ./client& ./client&

5

5

0

6

SERVER!!!

Get Message from client and send this to agent 5

Agent get 8

Server get message = I am the client

5

4

1

5

SERVER!!!

Get Message from client and send this to agent 4

Agent get 9

Server get message = I am the client

5

3

2

4

SERVER!!!

Get Message from client and send this to agent 3

Agent get 10

Server get message = I am the client

5

2

3

3

SERVER!!!

Get Message from client and send this to agent 2

Agent get 11

Server get message = I am the client

5

1

4

2

SERVER!!!

Get Message from client and send this to agent 1

Server get message = I am the client

Agent get 12

5

0

5

1

Agent get 8

Server get message = NewAgent 8 Hi_Client_from_Agent!

Server get msg from Agent

5

1

4

1

SERVER!!!

Get Message from client and send this to agent 1

5

0

5

0

Server get message = NewAgent 9 Hi_Client_from_Agent!

Server get msg from Agent

5

1

4

0

Server get message = NewAgent 10 Hi_Client_from_Agent!

Server get msg from Agent

5

2

3

0

Server get message = NewAgent 11 Hi_Client_from_Agent!

Server get msg from Agent

5

3

2

0

Server get message = NewAgent 12 Hi_Client_from_Agent!

Server get msg from Agent

5

4

1

0

Server get message = NewAgent 13 Hi_Client_from_Agent!

Server get msg from Agent

5

5

0

0