Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/11/2012, 14:05
sfermat
 
Fecha de Ingreso: octubre-2012
Mensajes: 33
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: Sincronizar estructura de datos

Cita:
Iniciado por hschimpf Ver Mensaje
Debes utilizar el modificador [URL="http://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html"]synchronized[/URL] que te proporciona java justamente para ese tipo de problemas.
Suerte!
con usar una pila sincronizada fue suficiente, muchas gracias.