Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.649.207 Times

DM1 Threads Library 1.0.5

  Date Added: November 23, 2010  |  Visits: 749

DM1 Threads Library

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)



DM1 Thread Library is part of the DM1 project. This library was born out of my need to have a portable C++ Thread library that would be simple to use, and would provide all the necessary Threads functionality I required for the DM1 project. Initially, this library was in C, but when I decided to re-write DM1 in C++, I ported the library to C++. During the port, I enhanced the functionality of the Threads library. The DM1 Threads library aims to be small. It does not try to provide a comprehensive set of functionality, but only what is absolutely essential for a project like DM1. I had the simplicity of the Java Threads package in mind when creating this library. The constructs provided by the DM1 Thread library are: - Thread objects that represent Operating System threads. - A Mutex is provided as a mechanism for Mutual Exclusion . Mutexes are used to ensure that a piece of code is executed by only one thread at any point in time. - Events are provided as low-level mechanisms for thread synchronisation. Events can be waited for, and signalled to. - A higher level object, that combines the functionality of an Event and a Mutex, is provided. This is the Monitor object. A Monitor can be locked exclusively, just like a Mutex, but it can also be made the object of a Wait operation. The signalling mechanism supports notification of one or more waiting threads. - To enable more efficient locking when both shared and exclusive access to data is required, Latches are provided. - Apart from the Thread synchronisation primitives described above, the library also provides a ThreadPool for the situation when it is inefficient to create a thread exclusively for a particular task, and it is desirable to share a pool of threads for executing multiple tasks. Design Principles The DM1 Threads library was designed with the following principles in mind: 1. Implement the bare minimum that is required. This Threads library does not aim to be a comprehensive threads package. 2. Avoid complex algorithms. If a particular construct is hard to implement correctly on all platforms, avoid it. 3. Document the library. 4. Avoid low level code, such as assembler code to implement Spin locks. Rely on the libraries provided by the Operating System. 5. Avoid holding Mutexes beyond function calls. A DM1 Thread library function will not hold any Mutex locks when it returns. 6. Avoid using clever C++ techniques wherever possible. (Unfortunately, some cleverness is required to implement the Thread class correctly). 7. Avoid dependency on external libraries. The DM1 library only requires the standard C library, apart from native Threads functionality. 8. Always report an error as soon as it is discovered. 9. Insert debug messages that can be switched on at run-time. 10. Do not throw exceptions from destructors because these might be executing as a result of an uncaught exception. 11. Never let an error go unreported..

Requirements: No special requirements
Platforms: Linux
Keyword: Avoid Functionality Libraries Library Programming Provided Thread Threads
Users rating: 0/10

License: Freeware Size: 235.52 KB
USER REVIEWS
More Reviews or Write Review


DM1 THREADS LIBRARY RELATED
Libraries  -  GUASI 0.24
GUASI library implements a thread based generic asyncronous execution engine, to be used to give otherwise syncronous calls an asyncronous behaviour. GUASI comes from Generic Userspace Asyncronous Syscall Interface. It can be used to wrap any...
348.16 KB  
Programming  -  POMStrap 1.0.7
POMStrap is a little opensource (BSD License) application bootstrap designed to avoid the Java library dependency/version headache. The more we use open-source Java components, the more we have to deal with the classical problem of dependency...
16.38 KB  
Programming  -  MacFSEvents 0.2.4
MacFSEvents is a Python library that provides thread-safe directory observation primitives using callbacks. It wraps the Mac OS X FSEvents API in a C-extension.
10.24 KB  
Libraries  -  LWJGL 0.99
LWJGL (Lightweight Java Game Library) is a solution aimed directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. LWJGL provides developers access to high performance crossplatform...
1.3 MB  
Libraries  -  PHP Tag Engine 1.0
PHP Tag Engine project is a library that allows you to easily add tagging functionality to a PHP application.. Crowd Favorite offers web-based task-management software, WordPress development, blog consulting and general web development services.
87.04 KB  
Programming  -  Transmuter Programming Language 0.9.2
Transmuter Programming Language is an extremely dynamic, biologically-inspired prototyping language providing a framework for experimenting with naturally evolving systems of objects over the net, and for exploring new ideas about recombinant...
348.16 KB  
Programming  -  GWT Validation Library 2.0b
GWT-VL stands for "Google Web Toolkit - Validation Library"!. It is here to fill the gap of missing validation functionality from GWT. Its aim is to provide a library of prebuilt validation functionality as well as a framework that...
235.52 KB  
Libraries  -  JsHttpRequest 5.0
JsHttpRequest project is an easy-to-use cross-browser AJAX library with AJAX file uploading support and many other features. JsHttpRequest first appeared as cross-browser analogue of XMLHttpRequest, and then became a very useful instrument to...
122.88 KB  
Libraries  -  linda 0.1.1
linda is a simple library implementation of the Linda parallel programming system. To write a parallel program with linda, you have to know only 6 functions: spawn, out, in, inp, rd, and rdp. linda was originally written by Wong Weng Fai. It has...
184.32 KB  
Games  -  Easy Game Library 20040323
Easy Game Library is library of C++ classes designed to make game programming easier. Now it consists only of easy_sprite library which consists of classes for using sprites. It should compile on different platforms because it uses SDL library as...
61.44 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB