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

September 2025

S M T W T F S
 1 2345 6
78 9 10 111213
14 151617 181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 19th, 2025 11:52 pm
Powered by Dreamwidth Studios