comp.lang.ada
 help / color / mirror / Atom feed
From: "Tomek Wałkuski" <tomek.walkuski@gmail.com>
Subject: Re: Ada and (SIGTERM?)
Date: Sun, 16 Aug 2009 06:11:38 -0700 (PDT)
Date: 2009-08-16T06:11:38-07:00	[thread overview]
Message-ID: <3d68abb8-0f8e-42fc-b576-24c320dd0bbc@d32g2000yqh.googlegroups.com> (raw)
In-Reply-To: 7c4f9e5c-73a3-40af-a247-c44c858b8742@k26g2000vbp.googlegroups.com

Ok, another problem. I have followed your suggestions and I have:
- one request manager,
- one request queue,
- one protected object which provides quit possibility,
- some, for this example five, request workers.

And... how to quit all of them? I cannot force all workers and manager
to look at Quit flag in protected object.

If manager is looking at Quit flag it terminates, but worker tasks
wait on request queue entry (Ludovic's example).
If workers are looking at Quit flag (and manager is not) everything
terminates, but I have to fire SIGTERM signal 6 times (when I have 5
workers).

And of course I am breaking Accept_Socket.




  reply	other threads:[~2009-08-16 13:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-05 19:58 Ada and (SIGTERM?) Tomek Walkuski
2009-08-06  1:06 ` Adam Beneschan
2009-08-06 18:13   ` sjw
2009-08-06 18:48     ` Adam Beneschan
2009-08-06 19:30   ` Tomek Wałkuski
2009-08-06 19:57     ` Jeffrey R. Carter
2009-08-06 20:02       ` Tomek Wałkuski
2009-08-06 20:00     ` okellogg
2009-08-08 13:11     ` Tomek Wałkuski
2009-08-08 15:06       ` Maciej Sobczak
2009-08-08 17:53         ` Tomek Wałkuski
2009-08-16 13:11           ` Tomek Wałkuski [this message]
2009-08-16 15:47             ` Maciej Sobczak
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox