{"id":16906034,"url":"https://github.com/chocobo1/concurrent","last_synced_at":"2025-03-20T16:24:02.127Z","repository":{"id":86429376,"uuid":"68272864","full_name":"Chocobo1/concurrent","owner":"Chocobo1","description":"Run commands concurrently!","archived":false,"fork":false,"pushed_at":"2018-05-25T13:17:36.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T15:24:15.054Z","etag":null,"topics":["concurrent","cpp","parallel","utility"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chocobo1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-09-15T06:54:58.000Z","updated_at":"2022-12-28T08:52:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdb44b62-e8bf-4427-9bab-da7614250024","html_url":"https://github.com/Chocobo1/concurrent","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocobo1%2Fconcurrent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocobo1%2Fconcurrent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocobo1%2Fconcurrent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chocobo1%2Fconcurrent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chocobo1","download_url":"https://codeload.github.com/Chocobo1/concurrent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244647931,"owners_count":20487167,"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":["concurrent","cpp","parallel","utility"],"created_at":"2024-10-13T18:40:37.480Z","updated_at":"2025-03-20T16:24:02.106Z","avatar_url":"https://github.com/Chocobo1.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concurrent [![TravisCI_status](https://travis-ci.org/Chocobo1/concurrent.svg?branch=master)](https://travis-ci.org/Chocobo1/concurrent) [![AppVeyor_status](https://ci.appveyor.com/api/projects/status/github/Chocobo1/concurrent?branch=master\u0026svg=true)](https://ci.appveyor.com/project/Chocobo1/concurrent)\n\nA naive tool that take cmd line commands (from text file or pipe) and execute concurrently:\n\n![screencast.gif](./screencast.gif)\n\nIt will automatically distribute the commands to CPU cores, the logical ones as much as you have except one (which is reserved for OS).\n\nIf you seek a more powerful tool: [GNU Parallel](https://www.gnu.org/software/parallel/).\n\n## Usage\n\n* Issue commands via stdin (pipe) input:\n  ```shell\nsomeCmdGenerator | concurrent -\n  ```\n\n* Issue commands via file:\n  ```shell\nconcurrent \u003cpath_to_file\u003e\n  ```\n\n\n## Special directives\n\n* Fence: Will wait for **all** executing commands (i.e. all commands before this directive) to finish and then continue on.\n  ```\n### Fence ###\n  ```\n or\n  ```\nrem Fence rem\n  ```\n\n* Change the number of commands executing in parallel:\n  ```\n### Threads: \u003c# of jobs\u003e ###\n  ```\n or\n  ```\nrem Threads: \u003c# of jobs\u003e rem\n  ```\n\n* Comment keyword: {`#`, `rem`}, the same as shell script \u0026 batch comment keyword.\n\n  Lines starting with these keywords will be ignored.\n\n\n## Compile\n\nGet yourself a [C++11 compiler](http://en.cppreference.com/w/cpp/compiler_support) and run:\n  ```shell\ncd src\nmake -j2\n  ```\n\nTo run tests:\n  ```shell\ngit submodule update --init --remote --depth 1  # init git submodule\ncd src\nmake -j2 test\n  ```\n\n\n## Downloads\n\nDownload win32 executables [here](../../releases)\n\n\n## Third-party code\n\n* [Catch](https://github.com/philsquared/Catch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocobo1%2Fconcurrent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchocobo1%2Fconcurrent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocobo1%2Fconcurrent/lists"}