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

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
171819 20212223
2425 2627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 27th, 2025 02:15 pm
Powered by Dreamwidth Studios