semafori.count() in java code example Example: semafori.count() in java protected Collection<Thread> getQueuedThreads()