sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55968
[Question #693505]: java multithreading is not parallel
New question #693505 on Sikuli:
https://answers.launchpad.net/sikuli/+question/693505
I have this runnable class:
public class PatternFinder implements Runnable {
private final Pattern pattern;
private final Region region;
public PatternFinder(Pattern pattern, Region region){
this.pattern = pattern;
this.region = region;
}
@Override
public void run(){
region.has(pattern,0);
}
Then I make bunch of threads, I give each different PatternFinder that each has different region and different pattern, I start() them all and then join() them to the main thread. But I get the same performance like if I wouldn't use any threading at all and run all the some_region.has(some_pattern, 0); sequentially in the main thread.
I am using JDK 8u251, win10, sikulixapi-2.0.4
Thanks
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.