swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is the Swarm Scheduler Thread safe?


From: Marcus G. Daniels
Subject: Re: Is the Swarm Scheduler Thread safe?
Date: 28 Sep 2000 13:38:00 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "TTF" == Tee Toth-Fejel <address@hidden> writes:

TTF> When you say "queue those events in a list", I assume you mean
TTF> put them on the event scheduler

No, since he point is to avoid call-ins to non-thread-safe native code.
For the sake of argument, that means all of Swarm...

If you need to have a thread modify the state of the world, make sure
the thing you're changing is a pure Java object, say, a
java.util.List.  Then Swarm can look at that thing when it is in
control, i.e. issuing actions from a Schedule.

You'll probably have to schedule more events or piggyback
queue-checking code on existing actions.  (Objective C users will be
hearing "doTkEvents"..)


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]