Thread safe generic queue in C.
Message or Task Queues are crucial part of everyday systems we rely on. Queues are popularly used for decoupling large systems and thus increase system reliability. The artefacts produced by one system is safely consumed by another components at its own pace.
In this small experimental project, we aim to implement a simple yet efficient, generic thread-safe queue in C from scratch.
queue.hcontains the function definitions and structuresqueue.chosts our actual implementationtest.chas our automated tests to check whether our implementation supports thread-safety and any data structure
Simply compile all the files using the given Makefile and execute the test file.
make test
./test