Multitasking and containers
- From: Maciej Sobczak <no.spam@xxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 09:51:24 +0100
Hi,
Paragraph 3 in Annex A says that it's OK to call any standard subprogram from concurrent tasks as long as the parameters do not overlap. John Barnes ("Progamming in Ada 2005") suggests that in order to (for example) read from the same container, the operations need to be protected "by using the normal techniques such as protected objects".
But reading from the protected object is not mutually exclusive (many readers are allowed) - so where's the gain? What's the difference between concurrent reads of, say, a Vector via protected object vs. direct access?
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
.
- Follow-Ups:
- Re: Multitasking and containers
- From: Matthew Heaney
- Re: Multitasking and containers
- From: Dmitry A. Kazakov
- Re: Multitasking and containers
- From: Georg Bauhaus
- Re: Multitasking and containers
- Prev by Date: Re: How to use associative arrays in Ada 2005?
- Next by Date: Re: Type declarations problematic?
- Previous by thread: Type declarations problematic?
- Next by thread: Re: Multitasking and containers
- Index(es):