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

./example uses 100% CPU for one core #67

Open
alwynallan opened this issue Feb 23, 2022 · 1 comment
Open

./example uses 100% CPU for one core #67

alwynallan opened this issue Feb 23, 2022 · 1 comment

Comments

@alwynallan
Copy link

Changing main.c to

  while(done == 0) {
    sleep(1);
  }

reduces it to 0%. No doubt there's a better way.

@nikolaydimitrov
Copy link

I wouldn't mind that, as long as it's the only issue with this code :)

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

No branches or pull requests

2 participants