By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,504 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,504 IT Pros & Developers. It's quick & easy.

Named pipes in threads

P: n/a
HI,

I currently have a "working" script that uses sockets to handle threads
communications - the problem is that it gives me obvious problems in handling
free ports (launching the script more than once ....).

Is thread named pipes communication allowed ?

Regards,

Philippe
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Philippe C. Martin" <ph*************@sbcglobal.net> writes:
I currently have a "working" script that uses sockets to handle threads
communications - the problem is that it gives me obvious problems in handling
free ports (launching the script more than once ....).
Who is communicating with whom? Threads communicating with other
threads in the same process? Threads communicating with a peer
external to the process? What "obvious problems" are you having?
Is thread named pipes communication allowed ?


What happened when you tried it?

What are you trying to do? Perhaps if you backed up and described
the "what" we could make better recommendations about the "how."

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
Jul 18 '05 #2

P: n/a

"Philippe C. Martin" <ph*************@sbcglobal.net> wrote in message
news:ma**************************************@pyth on.org...
HI,

I currently have a "working" script that uses sockets to handle threads
communications - the problem is that it gives me obvious problems in handling free ports (launching the script more than once ....).

Is thread named pipes communication allowed ?

Regards,

Replace the sockets with a queue of strings.
http://docs.python.org/lib/module-Queue.html

Write your Send and Recv functions in terms of Queue.get() and Queue.put(); Philippe

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.