S
Sanny
I want to use Java applet on 4/8 cores Processors. Will Browser allow
the applet to access all 4 Cores to an Applet if it has 4-5 Threads in
it? Does a webpage only get one core or it can ask more cores if the
applet is using multiple threads?
I have a code like this.
for (int i=0;i<12;i++){
callfunction1(i)
}
I want to convert it into 12 threads to be used by 4/8 Cores.
for (int i=0;i<12;i++){
Thread thread1;
thread1.start()
}
run{
if (this.thread=="thread1") callfunction1(i)
}
Is the above code bring multiple threads for the for loop each running
in paeallel?
What will be the correct code to implement above for loop into
multiple thread.
Will Browser allot 4 / 8 processors to the applet or only 1 core will
be given to the web page.
Bye
Sanny
the applet to access all 4 Cores to an Applet if it has 4-5 Threads in
it? Does a webpage only get one core or it can ask more cores if the
applet is using multiple threads?
I have a code like this.
for (int i=0;i<12;i++){
callfunction1(i)
}
I want to convert it into 12 threads to be used by 4/8 Cores.
for (int i=0;i<12;i++){
Thread thread1;
thread1.start()
}
run{
if (this.thread=="thread1") callfunction1(i)
}
Is the above code bring multiple threads for the for loop each running
in paeallel?
What will be the correct code to implement above for loop into
multiple thread.
Will Browser allot 4 / 8 processors to the applet or only 1 core will
be given to the web page.
Bye
Sanny