Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Threads Help

by miked63017 (Initiate)
on May 10, 2011 at 16:27 UTC ( #904002=note: print w/replies, xml ) Need Help??


in reply to Re: Threads Help
in thread Threads Help

I named my script CFDeluxe for Cluster F*** Deluxe. So rather than you combing through my spaghetti code. I just need an example of threads where each thread opens in a new console although I am starting to get the feeling this is not possible

Replies are listed 'Best First'.
Re^3: Threads Help
by wazoox (Prior) on May 11, 2011 at 18:05 UTC
    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://904002]
help
Chatterbox?
[LanX]: did he seriously hurt his fist at your nose in the end?
LanX .oO(positively thought)
[holli]: :) No. I might be small, but you don't want to be around me when I flip.
[LanX]: I can imagine ...
LanX hurts to be bitten between the legs ;-)
[holli]: You see, I have a friend whose daughter has been damaged seriously because she wasn't vaccinated against measles. (Her mother being anti-vaxx).
[LanX]: Contrary to Olivia newton John I don't like physical confrontations ...
[LanX]: Oh, you spread measles in your saliva?
[LanX]: ... and why did you bite hos daughter?
[LanX]: *his

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2017-12-13 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (373 votes). Check out past polls.

    Notices?