Exercise #14. Concurrency and Synchronization∗
Description∗
Working with the fixed thread pool.
Guidance∗
Use the following names:
Your.Name- as a home directory of your projects;exercise14- as a directory of the current project;src- as a sources directory.
1) Имеется пул тредов-исполнителей фиксированного размера.
2) Мастер-тред получает на вход через sysfs/procfs задания на выполнение и выдает их исполнителям.
3) Треды-исполнители выводят в консоль блоки символов указанной длины.
Параметры задания:
- символ,
- длина_блока,
- число_блоков.
Project Workflow
- Fork the repo.
- Clone that fork to a local repository.
- Add the repo as remote to your local clone (e.g. as
main). -
Your main branch is
main/your.name, you’ll share your solutions as MRs to this branch:- Create a branch and add commits there. Push this branch to remote:
git checkout -b branch_name # add commits here git push -u origin HEAD:branch_name - Create a merge request in GitLab web interface from
branch_namein your fork toyour.namein the repo.
- Create a branch and add commits there. Push this branch to remote: