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

Generalized Dispatcher #10

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Generalized Dispatcher #10

wants to merge 16 commits into from

Conversation

CarlosHSF99
Copy link
Owner

@CarlosHSF99 CarlosHSF99 commented Dec 20, 2023

Implemented a generalized dispatcher as described here and here.

Now the commands sent by the clients to the server are placed in a bounded buffer by the thread responsible for client and the a thread pool shared by all the clients is responsible for executing these commands and sending the response back to the client.

The client now has a specialized thread for receiving messages. It places them in a bounded buffer and the threads created in each request wait for messages in this bounded buffer. There's no demultiplexer.

@CarlosHSF99 CarlosHSF99 added the enhancement New feature or request label Dec 20, 2023
@CarlosHSF99 CarlosHSF99 self-assigned this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants