This little example creates some threads and does some locks, syncs and monitors to generate all colors in the VisualVM Threads tab.