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

December 2025

S M T W T F S
  1 2 3 4 56
7 89101112 13
14 151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 15th, 2025 01:21 pm
Powered by Dreamwidth Studios