Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Second background process is pausing the gui

by choroba (Cardinal)
on Jun 12, 2020 at 15:57 UTC ( [id://11117988]=note: print w/replies, xml ) Need Help??


in reply to Re: Second background process is pausing the gui
in thread Second background process is pausing the gui

But if you replace one of the shell loops with find, it hangs again until the find finishes.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: Second background process is pausing the gui
by tybalt89 (Monsignor) on Jun 12, 2020 at 16:49 UTC

    I don't see that on my system.

    I did replace the second shell command with xterm -e htop and it did pop up a new xterm running htop while still filling in the first text widget, exactly as expected.

      You can watch it here (YouTube warning!)

      Interestingly, when I click into the area to be filled, the application responds, but it immediately gets stuck again.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

        Best guess so far: you are dumping (hundreds of)? thousands of lines into the text widget. This is what is taking time.

        Sort of confirmed, instead of just 'find' try

        q( find / 2>/dev/null | perl -pe '$| = 1; select undef, undef, undef, +0.01' )
        This feeds in the lines just a little slower :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found