A java like implementation of posix threads encapsulated cleanly in a single C++ class.
A java like implementation of posix threads encapsulated cleanly in a single C++ class.
Report Bug
·
Request Feature
- About the Project
- Getting Started
- Documentation
- Roadmap
- Contributing
- License
- Contact
- Acknowledgements
This project aims to mimic Java thread behaviors by wrapping Pthreads calls in a C++ class that will let you create threads Java style. Pthreads is commonly used for multithreaded programming in C and C++, but this API is procedural and somewhat less convenient to use than Java’s object oriented thread interface.
cd
to the threads directory.- Type
make
. - Run the test application as
./thread
.
- A C++ compiler, like
g++
orcc
orclang
. make
utility.
Both of them mostly come preinstalled in a typical linux distribution like Ubuntu.
- Clone the repo
git clone https://github.com/shie-ld/threads.git
- Get into the cloned directory
cd threads
- Build the program using
make
utility.
make
- Run the program.
./thread
See the docs.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/shie-ld/threads