Results 1 to 7 of 7
Thread: Alarm Clock - Simple Question
- 10-19-2008, 08:09 AM #1
Alarm Clock - Simple Question
My laptop lacks an alarm function, which I would like. I have a simple question to ask before I decide to make one myself: Is it feasible to build a program that runs on a computer constantly (or just for a really long time)? Would a Java clock take up too much processing power? Would my computer be able to function normally if the program runs indefinitely?"Things are made of littler things that jiggle."
- 10-19-2008, 10:58 AM #2
Is this an assignment masked as a need? If so , please be upfront about it.
If not, there are free downloads available for this. I use Clock G2, which provides multiple time zones, multiple alarms and text to speech.
- 10-19-2008, 11:03 AM #3
No, this is strictly a desire (I don't need a clock, but it's definitely not an assignment). I am in a Java class, but I am so far ahead of everybody else, I could probably take the final tomorrow and ace it. Anyway, I like to code in my spare time, but I never know what kind of application I want to make. I've finally decided upon an alarm clock. Downloading one would quench my desire for one, but it wouldn't quench my desire to code. I'll check out Clock G2 nonetheless. Thanks!"Things are made of littler things that jiggle."
- 10-19-2008, 08:10 PM #4
3) yes, if you implement it properly
2) Depends on how you design it. A clock should mostly be asleep. Normal design is to have two threads, one that sleeps and wakes up periodically, and one that displays the current time when its has changed.
This can be a good assignment, you can learn about Barrier and threads, and synchronization.
fishtoprecords: I haven't run across the term "barrier" with regards to programming or Java. My Google search suggests that this has something to do with synchronization, with allowing threads to wait for a condition,... is this right? Is this implemented out of the box by Java? Thanks!
- 10-19-2008, 10:55 PM #6
You should check out the Java Tutorial on concurrancy that was added to Java in 1.5
- By tortelini in forum New To JavaReplies: 6Last Post: 09-06-2008, 06:41 PM
- By Froz3n777 in forum New To JavaReplies: 2Last Post: 02-13-2008, 03:39 AM
- By Rageagainst20 in forum New To JavaReplies: 0Last Post: 12-21-2007, 12:40 AM
- By ibanez270dx in forum New To JavaReplies: 0Last Post: 11-16-2007, 02:27 AM
- By carl in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 08:07 AM