2010-03-02

juan_gandhi: (Default)
2010-03-02 01:44 pm

here is the code I wrote...


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


No kidding, had to add it to OurTestCase class to avoid junit warnings...
juan_gandhi: (Default)
2010-03-02 02:48 pm

have to confess

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?