Descripción
Sintaxis
public class ReentrantLock extends Object implements Lock, Serializable
Constructores
Métodos
- getHoldCount()
- getOwner()
- getQueuedThreads()
- getQueueLength()
- getWaitingThreads()
- getWaitQueueLength()
- hasQueuedThread()
- hasQueuedThreads()
- hasWaiters()
- isFair()
- isHeldByCurrentThread()
- isLocked()
- lock()
- lockInterruptibly()
- newCondition()
- toString()
- tryLock()
- unlock()
Ejemplo
Líneas de Código
Vídeos Java
Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.