![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#21
|
||||
|
||||
Re: How to continue program operation while animation loop is runningQuote:
Since I've been out of college for 10yrs. now, what is the latest idea(s) from the professor? (propose the difference, and get their viewpoint/suggestion) I'd be curious to know the result. EDIT: It seems that interrupt() has many side affects [i.e. might require extra exception handling -- see the Java API], where I merely set a flag to allow the thread to exit in a more clean [I think] fashion. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
||||
|
#22
|
|||
|
|||
Re: How to continue program operation while animation loop is runningUnfortunately it's an online video course that Stanford posts for free on youtube, so there's no opportunity to ask the professor.
He introduced threading it in its most basic form, with the Thread object appearing in the main class. It's not a detailed enough explanation to know whether your approach might be better in some cases. Yeah, other input would be enlightening. |
|
#23
|
||||
|
||||
Re: How to continue program operation while animation loop is runningQuote:
What makes it annoying is the portion "...waits for long periods...", concerning the interrupt. Well, that time period is vague [aka: undefined] to me. How to define a "long period" varies greatly by opinion!! EDIT: ...This still doesn't answer the original question concerning classes with their own threads, or all threads from main, though. [Maybe Java alludes to this somewhere in the information link that I had in my first post? I'll have to check this too.] __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Equation solver | RazoR | C Programming Language | 3 | 18-May-2008 10:24 |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 11:13 |
| Text-Based Roulette Game | mfm1983 | C++ Forum | 5 | 29-Nov-2006 13:20 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The