Mar. 2nd, 2010

juan_gandhi: (Default)

    public void testGodIsLove()
    {
        assertTrue(true);
    }


No kidding, had to add it to OurTestCase class to avoid junit warnings...
juan_gandhi: (Default)
So, I've been consistently changing the code that is using mutexes and synchronized wait/notify with continuation style - yes, in Java; and imagine, could not figure out what to do with wait().

Well, replace it with Thread.sleep(), and use thread.interrupt() if you want to interrupt it (when it is sleeping), that's it. Big deal, indeed.

So, say no to mutexes... right? Or are there any other cases that require a mutex?

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

May 2025

S M T W T F S
    1 2 3
456 7 8 9 10
11 121314151617
181920 21 222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 23rd, 2025 04:29 am
Powered by Dreamwidth Studios