Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 1; i < n; i++)
- {
- for (int d = 0; d < potok_count; d++)
- {
- potoki[d] = new Thread((object e) =>
- { .......... });
- potoki[d].start(d);
- }
- for (int D = 0; D < potok_count; D++)
- {
- while (!is_end[D]) ;
- potoki[D].Abort();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement