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

multithreading for interactivity #16350

Closed
ggggggggg opened this issue May 13, 2016 · 1 comment
Closed

multithreading for interactivity #16350

ggggggggg opened this issue May 13, 2016 · 1 comment
Labels
multithreading Base.Threads and related functionality performance Must go faster REPL Julia's REPL (Read Eval Print Loop)

Comments

@ggggggggg
Copy link
Contributor

If I run the following code in a REPL (v0.4.5), I find that the REPL becomes very unresponsive. It will take many seconds to respond to just typing a few letters. In contrast, if I run the same code in an iJulia notebook, the iJulia notebook remains responsive to typing, even if it takes longer to evaluate things. It would be nice if the REPL remained responsive as well.

function dowork(n)
       t = 0.0
       for i=1:n
       t+= @elapsed sort(rand(10^5))
       yield()
       end
       t
       end

 for i=1:100 @schedule dowork(1000) end
@yuyichao
Copy link
Contributor

This probably requires a multithreaded repl.

@kshyatt kshyatt added performance Must go faster REPL Julia's REPL (Read Eval Print Loop) multithreading Base.Threads and related functionality labels Jul 28, 2016
@JeffBezanson JeffBezanson changed the title REPL unresponsive when tasks are doing a lot of work multithreading for interactivity Aug 2, 2019
@vtjnash vtjnash closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality performance Must go faster REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

4 participants