Displaying 1 to 4 from 4 results

AtomicKit - Concurrency made simple in Swift.

  •    Swift

Concurrency made simple in Swift. AtomicKit is a Swift framework designed to ease dealing with concurrency in Swift projects.

Kommander-iOS - A lightweight, pure-Swift library for manage the task execution in different threads

  •    Swift

Kommander is a Swift library to manage the task execution in different threads. Through the definition a simple but powerful concept, Kommand. Inspired on the Java library Kommander from Wokdsem.

Threadly - Type-safe thread-local storage in Swift

  •    Swift

Threadly is a Swift µframework that allows for type-safe thread-local storage. Thread-local storage (TLS) lets you define a single variable that each thread has its own separate copy of. This is great for cases such as having a mutable global variable that can't be safely accessed by multiple threads.

go-worker-thread-pool - A visual working example of a Thread Pool pattern, based on a known blog article

  •    Go

In computer programming, a thread pool is a software design pattern for achieving concurrency of execution in a computer program. Often also called a replicated workers or worker-crew model, a thread pool maintains multiple threads waiting for tasks to be allocated for concurrent execution by the supervising program. By maintaining a pool of threads, the model increases performance and avoids latency in execution due to frequent creation and destruction of threads for short-lived tasks. I want to get a better grasp of the pattern so I made a dummy running example, with a few alternations. I also added a visual representation using a HTML basic client & websockets. The user can send fake jobs to process, and everything is slowed down (to seconds) so the user can observe the worker behaviours.