Hola papatya,

I had some trouble with this lesson as well, have a look at the forum of the 
group with some posts related to your question (you will need to search for 
1021). 

http://www.mail-archive.com/[email protected]/info.html

About your question, in my case I got 30 lines (10 per thread) and only thing 
you need to remember is to format the time so you can see the ms. Good luck,

DAvid



--- El sáb 14-nov-09, papatya <[email protected]> escribió:

De: papatya <[email protected]>
Asunto: [java programming] lab 1021 -threads
A: "Java Programming Online Training Course By Sang Shin" 
<[email protected]>
Fecha: sábado, 14 noviembre, 2009, 2:06 pm


Create a class called MyCurrentDate that implements Runnable
interface.
The MyCurrentDate class displays the current date and time 10 times,
with 100 milli seconds interval - use sleep() method for this
interval.
Create a class called MyMain, which contans main() method, in which 3
instances of MyCurrentDate threads are being run.

is this means that the output like this?
henry Sat Nov 14 18:00:38 EET 2009
sally Sat Nov 14 18:00:38 EET 2009
mary Sat Nov 14 18:00:38 EET 2009
henry Sat Nov 14 18:00:39 EET 2009
sally Sat Nov 14 18:00:39 EET 2009
mary Sat Nov 14 18:00:39 EET 2009
.
.
.
or for ex:
henry Sat Nov 14 18:00:38 EET 2009

.
.
.
sally Sat Nov 14 18:00:38 EET 2009
.
.
.
mary Sat Nov 14 18:00:38 EET 2009
.
.
.
_______________________________________________
which of them is the output? 1st or 2nd??





      
____________________________________________________________________________________
¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8. 
http://downloads.yahoo.com/ieak8/?l=e1
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to