{"id":25539202,"url":"https://github.com/rohanvdvivedi/boompar","last_synced_at":"2025-10-29T23:17:59.843Z","repository":{"id":56732714,"uuid":"208497797","full_name":"RohanVDvivedi/BoomPar","owner":"RohanVDvivedi","description":" Multithreaded job execution library in C.","archived":false,"fork":false,"pushed_at":"2025-03-30T09:34:19.000Z","size":274,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T10:27:00.634Z","etag":null,"topics":["executor-service","job","job-queue","multithreading","multithreading-library","promise","pthreads"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RohanVDvivedi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-14T20:10:58.000Z","updated_at":"2025-03-30T09:34:22.000Z","dependencies_parsed_at":"2024-10-24T09:25:59.125Z","dependency_job_id":"d97746be-5066-49ff-b7bf-a53a92545050","html_url":"https://github.com/RohanVDvivedi/BoomPar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVDvivedi%2FBoomPar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVDvivedi%2FBoomPar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVDvivedi%2FBoomPar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanVDvivedi%2FBoomPar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohanVDvivedi","download_url":"https://codeload.github.com/RohanVDvivedi/BoomPar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248434999,"owners_count":21102954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["executor-service","job","job-queue","multithreading","multithreading-library","promise","pthreads"],"created_at":"2025-02-20T05:32:16.277Z","updated_at":"2025-10-29T23:17:59.824Z","avatar_url":"https://github.com/RohanVDvivedi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BoomPar\nThis is a multi threading library in C, built as an abstraction layer over pthread (POSIX threads) library.\nIt provides 3 user exported constructs an Executor, that can be either FIXED_THREAD_COUNT_EXECUTOR or a CACHED_THREAD_POOL_EXECUTOR, managing variable number of threads.\nNext it provides is a periodic_job, a construct that allows you to control and manage a job that is meant to run at triggers or in a periodic fashion at fixed (but updatable intervals).\nFinally there is an alarm_job, very similar to the periodic_job except that it gets it's next waiting time from the job itself (specifically designed for removing/evicting old elements from the data structures based on their expiry times, like in some cache systems).\n\n### Features\n * job: A wrapper to submit a task to be done, with a promise for completion.\n * executor: A (cached or fixed-thread-count) thread pool based job execution API, similar to Java's [ExecutorService](https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ExecutorService.html).\n\n## Setup instructions\n**Install dependencies :**\n * [Cutlery](https://github.com/RohanVDvivedi/Cutlery)\n * [PosixUtils](https://github.com/RohanVDvivedi/PosixUtils)\n\n**Download source code :**\n * `git clone https://github.com/RohanVDvivedi/BoomPar.git`\n\n**Build from source :**\n * `cd BoomPar`\n * `make clean all`\n\n**Install from the build :**\n * `sudo make install`\n * ***Once you have installed from source, you may discard the build by*** `make clean`\n\n## Using The library\n * add `-lboompar -lpthread -lcutlery` linker flag, while compiling your application\n * do not forget to include appropriate public api headers as and when needed. this includes\n   * `#include\u003cboompar/job.h\u003e`\n   * `#include\u003cboompar/promise.h\u003e`\n   * `#include\u003cboompar/executor.h\u003e`\n   * `#include\u003cboompar/periodic_job.h\u003e`\n   * `#include\u003cboompar/alarm_job.h\u003e`\n   * `boompar/resource_usage_limiter.h`\n\n   * `#include\u003cboompar/sync_pipe.h\u003e` can be used to share data among different jobs running on separate threads.\n\n   * `#include\u003cboompar/worker.h\u003e` and `#include\u003cboompar/sync_queue.h\u003e` api header are ony required if you want to build your own custom executor, *which may not be necessary*.\n\n## Instructions for uninstalling library\n\n**Uninstall :**\n * `cd BoomPar`\n * `sudo make uninstall`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohanvdvivedi%2Fboompar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohanvdvivedi%2Fboompar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohanvdvivedi%2Fboompar/lists"}