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

October 2025

S M T W T F S
    1 23 4
5 678 91011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 10th, 2025 10:09 am
Powered by Dreamwidth Studios