Ruby Stevenson | 3 Feb 22:48
Picon

process synchronization question

hi, all

I have a question on process synchronization:

two process A and B are defined, there is a one-to-one mapping between
the two: meaning one instance of A talks to one instance of B, only.

- A submitted bunch of jobs to B
- A then wait until B finishes to proceed.

What is the best way for an instance of B to notify A that the job is done?

>From what I can gather, A could define a SimEvent, and B use "signal"
method to notify A. The problem is it seems I need to encode instance
name of A (or something unique) into this event for B to precisely
signal this instance of A only, is this the case? Encoding a name then
parsing it to verify seems awkward though. Are there are better ways
of achieving this?

Thanks for help

Ruby

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com

Gmane