Alex Rivera | Logout

When is a ConcurrentSkipListSet useful?

Asked 2009-12-15T00:12:47.063
106

I just saw this data-structure on the Java 6 API and I'm curious about when it would be an useful resource. I'm studying for the scjp exam and I don't see it covered on Kathy Sierra's book, even though I've seen mock exam questions that mention it.

Edit
Report

1 Answer

4

skip lists are sorted lists, and efficient to modify with log(n) performance. in that regard it's like TreeSet. however there is no ConcurrentTreeSet. what I heard is that skip list is very easy to implement, that's probably why.

Anyway, when you need a concurrent, sorted and efficient set, you can use ConcurrentSkipListSet

answered 2009-12-15T00:35:30.720

Your Answer