Archive for the ‘programming’ Category

Java and read timeouts

Dec 12, 2002

We were encountering a problem in the server code at my company whereby read() requests on a stream were blocking and never returning. This was causing periodic data retrieval within threads to hang, which would eventually eat up all available threads and lead to stale data. I tried creating a watchdog thread which would periodically … Read more

JUnit changed my life

Nov 8, 2002

A few months ago, Vic was talking about JUnit and how I should have been making use of it. He even went so far as to sketch out a small test case. I knew I should have been writing test cases for my code, but my work schedule was so hectic, with me … Read more