• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timer for lock

 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi another doublt:
When I try to create a Timer for control the lock deadlock. i try to use Timer. Exist 2 of them one in javax.sqing and another in java.util. I want to use the timer in java.util but seem to me is overrider. I try this :
Timer timer = new java.util.Timer();
but the javac tell me coldn't find the package.
Some help ?
 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Someone used timer for lock ?
 
tony_maus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
java.util.Timer timer = new java.util.Timer();
------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic