Feb. 23rd, 2012

juan_gandhi: (Default)
Говорят, что цикл for (int i = 0; i < array.length; i++) ... значительно эффективней, чем for (String s : array) ...

Поэтому надо заменить
for (Object mutex : mutexes) {
  mutex.wait();
}


на
for (int i = 0; i < mutexes.length; i++) {
  mutexes[i].wait();
}


...

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

November 2025

S M T W T F S
       1
23456 7 8
9 1011 12 1314 15
16171819 20 2122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 23rd, 2025 09:33 pm
Powered by Dreamwidth Studios