Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Threads Help

by wazoox (Prior)
on May 11, 2011 at 18:05 UTC ( #904210=note: print w/replies, xml ) Need Help??

in reply to Re^2: Threads Help
in thread Threads Help

On Linux, each console (let's say xterm to keep it simple) is an independent process, and is connected to its own pty (pseudo tty). You can open an xterm with a special command (as opposed as running a shell). If you want to display data coming from a thread to your xterm, you could use named pipes (created with mkfifo); the working thread could write to the named pipe, and the script run from the xterm would display what's coming into the named pipe.
I don't have any code at hand for an example, but it's quite easy to do.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://904210]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
As of 2016-10-24 14:09 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (307 votes). Check out past polls.