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

pipes #1

Open
esneider opened this issue Mar 15, 2011 · 5 comments
Open

pipes #1

esneider opened this issue Mar 15, 2011 · 5 comments

Comments

@esneider
Copy link
Collaborator

there's a limit of 256 open files per process, so each process can have ~250 pipes. Since we have two pipes per child process, there's an upper bound of ~125 number of total tanks (players * tanks_per_player)

@eordano
Copy link
Collaborator

eordano commented Mar 16, 2011

Hmm, that sucks. Is that limitation per process or per thread? Possible solution: fork process and handle each team's tanks in different threads/process.

That should get us up to ~125 tanks per team :D

@esneider
Copy link
Collaborator Author

I think that's possible.. maybe you can extend that to each team's process having several processes that handle the tanks.. do you want to code it? :)

@eordano
Copy link
Collaborator

eordano commented Mar 16, 2011

And we have to think about the IPC... I mean... when I spawn the process,
how do I get to talk back to my parent?

On Wed, Mar 16, 2011 at 4:15 PM, esneider <
reply@reply.github.com>wrote:

I think that's possible.. maybe you can extend that to each team's process
having several processes that handle the tanks.. do you want to code it? :)

Reply to this email directly or view it on GitHub:
#1 (comment)

@esneider
Copy link
Collaborator Author

The same way we do now :S with pairs of pipes

@eordano
Copy link
Collaborator

eordano commented Mar 17, 2011

Oh, that's right :P

I'll get into that...

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