RE: [sv-ec] [sv-bc] Semaphore question

From: Jonathan Bromley <jonathan.bromley_at_.....>
Date: Tue Sep 20 2005 - 01:15:34 PDT
> -----Original Message-----
> From: Clifford E. Cummings [mailto:cliffc@sunburst-design.com]

> NOTE: it would be useful to have a semaphore.num() method to 
> query how many 
> keys are in the bucket.
> 
> Use models: Since processes can put more keys back into the 
> bucket that 
> they have removed, interesting use models include:
[...]

Whilst we obviously need to clarify the defined behaviour,
for my $0.02 you're abusing semaphores here: it's a very 
low-level synchronization construct, and what you're 
suggesting smacks of using a buggy whip as a cruise control.
Be grateful that at last we have a reliable mutex, and 
write custom resource control classes to do the interesting
things you describe; these classes can use one or more 
semaphores, or mailboxes, in straightforward ways.

Just my bigoted opinion as usual :-)
-- 
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
Tel: +44 (0)1425 471223                   Email: jonathan.bromley@doulos.com
Fax: +44 (0)1425 471573                           Web: http://www.doulos.com

This e-mail and any  attachments are  confidential and Doulos Ltd. reserves 
all rights of privilege in  respect thereof. It is intended for the use of 
the addressee only. If you are not the intended recipient please delete it 
from  your  system, any  use, disclosure, or copying  of this  document is 
unauthorised. The contents of this message may contain personal views which 
are not the views of Doulos Ltd., unless specifically stated.
Received on Tue Sep 20 01:15:39 2005

This archive was generated by hypermail 2.1.8 : Tue Sep 20 2005 - 01:16:02 PDT