Java Concurrency – Part 4 : Semaphores

Duke Cowboy Java

We continue with the Java Concurrency thema with the semaphores. Semaphores is also a way to synchronize threads.Semaphores are a really simple concept, invented by the famous Dutch computer scientist Edsger Dijkstra. Basically a semaphore is a … [Read more...]

Java Concurrency – Part 3 : Synchronization with intrinsic locks

Java Logo

After learning how to create threads and manipulate them, it's time to go to most important things : synchronization.Synchronization is a way to make some code thread safe. A code that can be accessed by multiple threads must be made thread safe. … [Read more...]

Java File Copy Benchmark Updates (once again)

Duke Java Logo

I've made another updates to my file copy benchmark.First of all, I used my little utility class to automatically create the graphs. The graph are a little less clean, but I spare a lot of time not creating them myself.Then, I've also made … [Read more...]

Java 7 : The new try-with-resources statement

Duke Java Logo

From the build 105, the compiler and runtime of Java 7 Releases have support for the new form of try : try-with-resources, also called ARM (Automatic Resource Management) blocks.This new statement make working with streams and all kind of … [Read more...]

Java Concurrency in Practice – Book Review

Duke Cowboy Java

Hi,I used my holidays to concentrate myself on the reading of my last book : Java Concurrency in Practice of Brian Goetz (with Tim Peierls, Joshua Bloch, Joseph Bowbeer, David Holmes and Doug Lea).This book is, in my point of view, the … [Read more...]

Holidays

Monday, I will go on holidays for one week. I'll not have internet except on my smartphone, so I'll not post on this blog during one week.I will just approve comments and perhaps answer to comments if this is necessary, but this is all.So, to … [Read more...]

A website for JTheque

Duke Java Logo

Hi,I've the pleasure to inform you that I've created a new website in English for JTheque : http://www.jtheque.comThe old websites of JTheque (a French website and a French forge) were completely out of date and were too complicated too … [Read more...]

Do not use relative path with LogBack

Java Logo

A little tip that can be useful and save a lot of time : Do not use relative path with LogBack.I wondered why this little LogBack configuration didn't work :No file were written. I searched during a long time and after that tested with an … [Read more...]

Generate graphs benchmarks easily

Duke Java Logo

After launching a lot of benchmarks for file copy benchmark and always generating the graphs from the results in Excel, I realized that I was loosing a lot of time to do that. So like any Java developer, I decided to create a little tool that do the … [Read more...]

Quick Tip : Launch Java Applications From Java applications with Ant

Apache Ant Logo

One week ago, I searched a way to launch a Java application from an other Java application without loosing portability. And I found a post on StackOverflow explaining how achieve that goal using Apache Ant.It's really easy. It use the Ant classes … [Read more...]