Open API for background and multi-core actions

Will there be OpenAPI available for the new process backgrounding stuff. I've got some ideas that I would love to play with.

--Dave Griffith

5 comments
Comment actions Permalink

Hello Dave,

Will there be OpenAPI available for the new process backgrounding
stuff. I've got some ideas that I would love to play with.


It's already there.
ProgressManager.getInstance().runProcessWithProgressAsynchronously().

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Excellent. It took me less than ten minutes to get MetricsReloaded calculations working properly in the background. Is there anything special I need to do enable multi-threaded backgrounding, or is it just a matter of playing "guess the cores and spawn the threads"?

--Dave Griffith

0
Comment actions Permalink

We are using
java.util.concurrent.Executors#newFixedThreadPool(Runtime.getRuntime().availableProcessors())
for spawning threads.
It's just important to remember to acquire the readAction() for the least
possible time interval to improve responsiveness.

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:33492818.1169476036870.JavaMail.itn@is.intellij.net...

Excellent. It took me less than ten minutes to get MetricsReloaded
calculations working properly in the background. Is there anything
special I need to do enable multi-threaded backgrounding, or is it just a
matter of playing "guess the cores and spawn the threads"?

>

--Dave Griffith



0
Comment actions Permalink

Just as a quick query, should MetricsReloaded be working in IDEA 6?

I noticed someone asked in the plug-ins forum in December (http://www.intellij.net/forums/thread.jspa?messageID=5179033&#5179033) and I can't collect metrics at all, it just brings back an empty window.

0
Comment actions Permalink

There should be a new release shortly, as soon as a QA cycle is finished.

--Dave Griffith

0

Please sign in to leave a comment.