3 Feb 22:48
process synchronization question
Ruby Stevenson <ruby185 <at> gmail.com>
2010-02-03 21:48:45 GMT
2010-02-03 21:48:45 GMT
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
RSS Feed