Skip to content

azzeddine2017/RingThreadPro

Repository files navigation

RingThreadPro

A professional thread management library for Ring programming language.

Installation

  • ringpm install RingThreadPro from Azzeddine2017

Quick Start

  1. Include the library in your Ring program:
load "RingThreadPro.ring"
  1. Create a ThreadManager instance:
oThreads = new ThreadManager(4)  # Create manager with 4 threads
  1. Create and use threads:
# Create a thread
oThreads.createThread(1, "myFunction()")

# Wait for thread completion
oThreads.joinThread(1)

# Clean up
oThreads.destroy()

Examples

  1. Basic Thread Example:
load "ThreadExample.ring"
  1. Advanced Threading:
load "ThreadAdvancedExample.ring"
  1. Thread Pool:
load "ThreadPoolExample.ring"

Features

  • Thread creation and management
  • Thread synchronization (mutexes, condition variables)
  • Thread priorities and naming
  • Error handling and debugging
  • Resource management
  • Thread pools and barriers

Documentation

See RingThreadPro_Documentation.md for complete documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages