Difference between sleep and suspend?

Answer Posted / satya

sleep(long millis)

takes a pause for a thread for a time in milli seconds,
after the sleep time is over then the thread is again
executing

suspend()

suspending the running thread

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1630


What is jboss?

571


To identify IDL language what mapping mechanism is used?

3411


What are the different class loaders used by jvm?

595


What is the relation between the infobus and rmi?

556






what is Activation Instantinator?

1905


Are there books about seam?

630


how to use debug in my elipse to solve problems that exist in my project

1760


what is a non-repeatable read?

1826


What are the services in RMI ?

1882


What restrictions are placed on the values of each case of a switch statement?

535


What are callback interfaces?

591


Difference between new operator and class.forname().newinstance()?

598


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

565


What value does read() return when it has reached the end of a file?

549