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

Basic Networking - Part 3 #31

Open
bonedaddy opened this issue Jul 22, 2020 · 0 comments
Open

Basic Networking - Part 3 #31

bonedaddy opened this issue Jul 22, 2020 · 0 comments

Comments

@bonedaddy
Copy link
Contributor

Overview

Given that embedded systems have limited available threads, it is important that we dont consume all threads by creating tasks to handle each and every new connection. Instead we should have a single thread responsible for handling new connections. Whenever new connections are received, we add the corresponding file descriptors to one mega list of all active file descriptors.

The thread responsible for handling new connections can then check which file descriptors are ready for reading/writing, and handling them accordingly

Expected Outcome

  • A dedicated thread handles all connections
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

1 participant