comp.lang.ada
 help / color / mirror / Atom feed
* Semaphores without using entry
@ 2001-12-27  9:53 Jos� Alberto
  2001-12-27 10:09 ` Michal Nowak
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jos� Alberto @ 2001-12-27  9:53 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

Hello to everybody,

I need to use semaphores for a concurrent program, but I've been told not to
use the entry clause, but I can use the Ada.Synchronous_Task_Control
package.

Can anybody help me?

Thanks in advance

Jos� Alberto







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Semaphores without using entry
  2001-12-27  9:53 Semaphores without using entry Jos� Alberto
@ 2001-12-27 10:09 ` Michal Nowak
  2001-12-27 23:24   ` Jos� Alberto
  2001-12-28 15:03 ` Matthew Heaney
  2001-12-28 15:10 ` Matthew Heaney
  2 siblings, 1 reply; 5+ messages in thread
From: Michal Nowak @ 2001-12-27 10:09 UTC (permalink / raw)
  To: comp.lang.ada usegroup->mailing list gateway

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 878 bytes --]

On 01-12-27 at 10:53 José Alberto wrote:

>Hello to everybody,
>
>I need to use semaphores for a concurrent program, but I've been told not
>to
>use the entry clause, but I can use the Ada.Synchronous_Task_Control
>package.
>
>Can anybody help me?
>
>Thanks in advance
>
>José Alberto

Try to read in Reference Manual, Annex D, Section D.10.
You should find enough info to give you idea how to
solve you problem there.

http://www.adapower.com/rm95/index.html
http://www.adapower.com/rm95/arm95_296.html#SEC296

Good luck,
Mike
-----------------------------------------
                             ____|
                             \%/ |~~\
  O                                  |
 o>>        Mike Nowak               |
 T                                   |
/ >       vinnie@inetia.pl           |
http://www.geocities.com/vinnie14pl _|__




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Semaphores without using entry
  2001-12-27 10:09 ` Michal Nowak
@ 2001-12-27 23:24   ` Jos� Alberto
  0 siblings, 0 replies; 5+ messages in thread
From: Jos� Alberto @ 2001-12-27 23:24 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

Thanks for your help

Jos� Alberto Adrados Sanz
"Michal Nowak" <vinnie@inetia.pl> escribi� en el mensaje
news:mailman.1009447502.24237.comp.lang.ada@ada.eu.org...
On 01-12-27 at 10:53 Jos� Alberto wrote:

>Hello to everybody,
>
>I need to use semaphores for a concurrent program, but I've been told not
>to
>use the entry clause, but I can use the Ada.Synchronous_Task_Control
>package.
>
>Can anybody help me?
>
>Thanks in advance
>
>Jos� Alberto

Try to read in Reference Manual, Annex D, Section D.10.
You should find enough info to give you idea how to
solve you problem there.

http://www.adapower.com/rm95/index.html
http://www.adapower.com/rm95/arm95_296.html#SEC296

Good luck,
Mike
-----------------------------------------
                             ____|
                             \%/ |~~\
  O                                  |
 o>>        Mike Nowak               |
 T                                   |
/ >       vinnie@inetia.pl           |
http://www.geocities.com/vinnie14pl _|__






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Semaphores without using entry
  2001-12-27  9:53 Semaphores without using entry Jos� Alberto
  2001-12-27 10:09 ` Michal Nowak
@ 2001-12-28 15:03 ` Matthew Heaney
  2001-12-28 15:10 ` Matthew Heaney
  2 siblings, 0 replies; 5+ messages in thread
From: Matthew Heaney @ 2001-12-28 15:03 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 628 bytes --]


"Jos� Alberto" <HIGHLAND@santandersupernet.com> wrote in message
news:a0eqqq$9dk$1@news.ya.com...
> Hello to everybody,
>
> I need to use semaphores for a concurrent program, but I've been told not
to
> use the entry clause, but I can use the Ada.Synchronous_Task_Control
> package.

You may want to take a look at my article in the patterns archive, on this
very subject:

I'm Queueless, or, Suspension Objects Instead of Entries
http://www.acm.org/archives/wa.cgi?A2=ind9904&L=patterns&P=R7659

See also:

Task Synchronization Using Suspension Objects
http://www.acm.org/archives/wa.cgi?A2=ind9904&L=patterns&P=R4138







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Semaphores without using entry
  2001-12-27  9:53 Semaphores without using entry Jos� Alberto
  2001-12-27 10:09 ` Michal Nowak
  2001-12-28 15:03 ` Matthew Heaney
@ 2001-12-28 15:10 ` Matthew Heaney
  2 siblings, 0 replies; 5+ messages in thread
From: Matthew Heaney @ 2001-12-28 15:10 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]


"Jos� Alberto" <HIGHLAND@santandersupernet.com> wrote in message
news:a0eqqq$9dk$1@news.ya.com...
> Hello to everybody,
>
> I need to use semaphores for a concurrent program, but I've been told not
to
> use the entry clause, but I can use the Ada.Synchronous_Task_Control
> package.

Actually, when I searched for "suspension" using the search engine, these 5
articles came up:

      Item # Date Time Recs   Subject
      000143 99/04/11 01:35 226  Task Synchronization Using Suspension
Objects
      000155 99/04/19 04:54 427  I'm Queueless, or, Suspension Objects
Instead of Entries
      000159 99/05/05 01:26 727  Do Not Entry: Bounded Queue of Suspension
Objects
      000173 99/10/24 17:19 380  Bounded Buffer with Entry-less Get Queue
      000175 99/10/27 00:05 412  Bounded Buffer with Entry-less Get Queue -
Update


See http://www.acm.org/archives/patterns.html for the complete list.

I did a whole series of articles about concurrency patterns in Ada95.  Maybe
they will be of some use to you.







^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-12-28 15:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-27  9:53 Semaphores without using entry Jos� Alberto
2001-12-27 10:09 ` Michal Nowak
2001-12-27 23:24   ` Jos� Alberto
2001-12-28 15:03 ` Matthew Heaney
2001-12-28 15:10 ` Matthew Heaney

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