Cheap Threads 2.6 C/C++ script

SPONSORED LINKS

    Specification

  • Version: 2.6
  • File size: 0 KB
  • File name: ct2_6.zip
  • Last update:
  • Platform: Linux / BSD
  • Language: C/C++
  • Price:LGPL
  • Company: Scott McKellar (View more)

Cheap Threads 2.6 script description:




Publisher review:
Cheap Threads is a library of portable C routines to implement cooperative multitasking with prioritized scheduling. Cheap Threads provides an alternative -- a library of routines, written in portable Standard C, for running multiple concurrent tasks within a single process.

Each task must be designed to give up control voluntarily from time to time, either by returning from a function call or by using a built-in setjmp/longjmp mechanism. Cheap Threads then runs the next task, until that one yields control. And so on. Tasks may communicate with each other by sending messages. Since they all run in the same memory space, they may also communicate through shared memory. Since they don't interrupt each other, they don't need to use semaphores, mutexes, or critical sections to keep from stepping on each other. Depending on how you use it, Cheap Threads can schedule your tasks in a simple round robin scheme, or it can run some tasks more often than others according to their assigned priorites.

A thread can sleep while it awaits a message, so that it doesn't slow down the scheduler for nothing. Finally, Cheap Threads is open software. You can see how it works, you can change it, you can fix it if it's broken. Nevertheless, Cheap Threads has its drawbacks. Because each task must give up control from time to time, you may have to structure the code in a way that doesn't feel natural or intuitive.

The scheduler is vulnerable to a task that takes too much time or gets caught in an endless loop. It's up to you to judge the tradeoffs.
Cheap Threads 2.6 is a C/C++ script for Ad Management scripts design by Scott McKellar. It runs on following operating system: Linux / BSD.

Operating system:
Linux / BSD

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5