JDSF Getting Started
Overview
Almost every programmer has got to the point where he worked with more than one thread, and then started synchronizing them. Today’s applications become not only multi threaded but also distributed, that is, an application can run on different processors and even different computers. Synchronizing such application is a very difficult task, and that is where our new project comes handy.
We provide a one class Monitor object that provides distributed getLock, releaseLock as well as wait-notify functionality.
Configuration
Synchronizing
Use org.jdsf.dl.LockObject to perform distributed synchronization.
Please note that the lock can be created only on String objects at this time.
Wait-notify
Use org.jdsf.dl.LockObject to perform distributed wait-notify.
Please note that at the current version the wait and notify method do not lock/release the distributed monitor.
An example use of JDSF can be found in the current release under the examples folder.
Each String creates a lock only for the relevant String value, in this way multiple Distributed lock can be created.
