Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the concept of "detached" external commands for the C/Swift API #886

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

akyrtzi
Copy link
Contributor

@akyrtzi akyrtzi commented Jul 19, 2023

These are commands that run without blocking the execution lanes or being constrained by them (the number of execution lanes does not restrict how many 'detached' commands can run in parallel).

It is up to the client to decide whether a 'detached' command is appropriate for its purposes, but a good use case for executing commands outside the execution lanes is when the work involves the network; in such case it is beneficial to avoid blocking execution lanes while waiting for network queries, while also being able to initiate more parallel network queries than the number of CPU cores.

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jul 19, 2023

@swift-ci smoke test

@johari johari requested a review from owenv July 19, 2023 22:12
@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jul 20, 2023

@swift-ci smoke test

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jul 20, 2023

@swift-ci Please test Windows platform

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jul 20, 2023

@swift-ci smoke test

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jul 20, 2023

@swift-ci Please test Windows platform

@akyrtzi
Copy link
Contributor Author

akyrtzi commented Jul 21, 2023

@swift-ci Please test Windows platform

… API

These are commands that run without blocking the execution lanes or being constrained by them
(the number of execution lanes does not restrict how many 'detached' commands can run in parallel).

It is up to the client to decide whether a 'detached' command is appropriate for its purposes, but a good
use case for executing commands outside the execution lanes is when the work involves the network; in such case
it is beneficial to avoid blocking execution lanes while waiting for network queries, while also being able to initiate more
parallel network queries than the number of CPU cores.
@akyrtzi akyrtzi merged commit 549339b into main Jul 21, 2023
@akyrtzi akyrtzi deleted the akyrtzi/pr/detached-tasks branch July 21, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants