资 源 简 介
unidist resources consists of:
SharedLocks: to ensure resource control can be limited, and confirm resources are being used. State is never saved for process restarts. Locks are lost.
SharedCounters: to track values of interest to different threads, updated in an atomic fashion. Usable as unique ID incrementors and thread safe. State can be saved for process restart, snapshotting only.
SharedState: to track data in buckets in a thread-safe manner. Shared state allows disperate threads to use each other"s information, safely. State can be saved for process restart, archival method and snapshotting is available.
MessageQueues: inter-thread communication or delayed processing. Thread safe and can be stored to disk for restart survival. Storage methods include archive and snapshotting, and can be tuned.
Thread Safe Dictionary: used as a core part of all thread-safe operations, t