Timer with slow system clock
I have a timer that performs scheduled events at a fixed rate. If the system clock is slow, is it possible that the associated TimerTask will stop running? Is there anything else that may be unexpectedly halting the execution of the TimerTask? Thanks.
I have a server clock that I'd like to emulate on the client, by only obtaining the server time a few times per hour after initialization and relying on a client TimerTask to keep pace. Sometimes, a client's clock is slow due to a bad battery, etc. Occasionally, a client reports that their clock has either frozen or fallen off the pace by several seconds, even with a sound system clock. The code looks as follows:
private final TimerTask heartbeatTask = new TimerTask() {
public void run() {
synchronized (heartbeatListeners) {
for (Iterator it = heartbeatListeners.iterator(); it.hasNext();) {
HeartbeatListener listener = (HeartbeatListener) it.next();
try {
listener.tick();
} catch(Exception e) {
e.printStackTrace();
synchronized (serverTimeLock) {
serverTime += 1000;
public init(...) {
heartbeatTimer.scheduleAtFixedRate(heartbeatTask, 0, 1000);
}
Similar Messages
-
To compare given time with the system time
i need to compare the given time with system time.i dont know how to compare with system time
in my application i need to end the time when both time is equal i need to give permission to access my page
thank u
plz help meDate d =new Date();
System.out.println(d);
Date d1 =new Date("04/28/2006 16:37");
System.out.println(" "+d.getTime()+" "+d1.getTime());you can use like this. d1 contains the user date
as u mentioned
startTime = new Date( "04/28/2006 12:37");
EndTime = new Date( "04/28/2006 18:37");
if curTime = new Date();
then you can compare like
if(curTime.after(startTime) && curTime.before(EndTime)
hope it will work -
Is it acceptable for a developer to tell a user to tamper with the system clock?
Im not sure where to post this question but i cant find a a way to email Apple with this question. I need an official response from Apple on whether or not it is acceptable for a developer to tell a user to tamper and change the system clock in order to use their app.
I am actually the user. A game developer told me to do this in order to play their game temporarily because their update had a glitch. Their official response to their game forums was change date and play through the weekend until they could apply a patch. Well, in turn it messed up my daughters game because her game is a progression style game which looks at the clock. I need something somewhere that says, tampering with the clock is not approved. Only way to bring my daughters game back to current progression is to buy "diamonds" because it is a "freemium" type game. Developer that told me to change clock basically told me "tough luck, go away" andi want to take them to court for about 800$ to buy appropriate amount of diamonds.
-
Super-slow system clock on Acer Switch 10 (Atom Z3735F)
Hi folks,
I managed to install 64-bit Arch Linux on my Acer Switch 10. I noticed a problem with time (which may cause other problems like sluggishness of LXDM startup and switching between console and graphical ttys). Clock ticks VERY slowly, about 1 second per 4 second in real time. How can I fix this?Problem is gone after installing xf86-video-intel and/or compiling a newer kernel (3.19) with make localmodconfig.
Unfortunately now I have another problem with tablet freezing at some point. This only happens in GUI - lxdm+lxde+chromium. -
How to compare current time with any particular time?
Hi All,
Problem:
I have a form which accept data from user but i want that user can enter data only before 4 in the evening after that no data will be accepted and user get any message. Now the problem is I want to compare the current time with 4 o clock or 16:00:00 but i dont know how to check whether the current time is greater or lesser than 4. Till now my code are like this: if(tt.equals("16:00:00")){}else{}
where tt is current time. but this is not the feasible solution for my second clause.
Any kind of help will greatly appreciate.
ThanksOne more thing:
I find timestamp class quite helpful in my case but i
dont know how to implement the before() method
of this class.
Any idea.* You wouldn't implement before(). You'd just use it. It's already implemented for you.
* before() doesn't just compare the hour of the day. It compare two date & time objects to see which one is greater--that is, it effectively looks at all the fields, not just HOUR.
* You don't need Timestamp if you're not dealing with a database. -
How to Sync System Clock with Internet Time in Windows 7?
"Internet Time" tab is missing in Clock Settings as shown in below link.
http://mintywhite.com/windows-7/7maintenance/windows-seven-7-sync-system-clock-with-internet-time-how-to/
Please suggest how to Sync System Clock with Internet Time in Windows 7?
Regards, Dharmendra, Bangalore (India)The note at the bottom of the first link from Alex Verboon has the following, which worked on my Domain-associated Windows 7 system:
Synchronizing with an Internet time server
You can synchronize your computer clock with an Internet time server. This means that the clock on your computer is updated to match the clock on the time server, which can help ensure that the clock on your computer is accurate. Your clock is typically updated
once a week and needs to be connected to the Internet for the synchronization to occur.
Note
If your computer is on a domain, you can't synchronize your clock with an Internet time server.
Open Date and Time by clicking the Start button, clicking Control Panel, clicking Clock, Language, and Region, and then clicking Date and Time.
Click the Internet Time tab, and then click Change settings. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Click Automatically synchronize with an Internet time server, select a time server, and then click OK. -
Display Synchronised System Clock With Milliseconds (HH:MM:SS:mm)
Hello All,
I need to display the system clock with hours, minutes, seconds and milliseconds (the system clock it synchronised via NTP or GPS and needs to be accurate)
Using the Buddy API time functions I can display the time with an accuracy of seconds but the inbuilt lingo "the Milliseconds" and Ticks does not correspond to the system time.
for example I tried using
member("MyTimeStamp").text = baSystemTime("%0H"&":"&"%0M"&":"&"%0S"&":"&chars(""&the milliseconds, 6,7))
but the seconds change out of synch with the milliseconds, the milliseconds are approximately 10-12 ms faster and I don't want to fudge the timing, I recorded the display with a slow motions camera and can see the seconds reset to 0 when the milliseconds are already at a value of 10 - 12.
Any Idea how I can derive milliseconds using the system time? HH:MM:SS:mm
thanks.10-12 ms delay (error) is the correspondent of a 80-100 FPS (polling interval).
Theoretically speaking, to get 1ms delay (error) you need to run your script at 999 FPS (the max value allowed by D12).
Practically speaking, that's not possible (many other factors are involved here).
cheers -
Is Mail.app one of the "erratic" behavior apps with a reset system clock?
I am hoping someone can help with a fine detail of mail.app (v2.1.3) behavior.
I had an incident where an iMac sent out 200+ smtp hits a minute and was tossed of the network for presumed zombie spaming.
I think I have actually tracked the problem to an unfortunate conjunction of circumstances that is actually innocent (if still annoying)
Let me set up the story:
1. This is a common use computer, so Mail is not configured (except that it is --I'll get to that in a moment) and
2. Safari will invoke Mail when you click on an "email link"
Mostly everyone just quits mail if they goof and click an email link.
BUT some time ago at least one person invoked Mail and composed a message. This message, naturally, remained in the outbox ever since. That person learned that they can't send email that way, so ever since they just cmd-Q Mail.
BUT Before this person learned, they walked through the mail-config and told mail to try hitting smtp.mac.com:"nonExistantUser".
So that covers the lead-up. Two days ago, mail was invoked via a Safari link, BUT it wasn't quit, it was sent to the background.
Where it undoubtedly tried to send the outbox repeatedly until it was kicked off the network.
Here is what I don't understand:
Under this scenario of a mis-configured .mac address, will mail repeatedly try and fail to smtp at the maximum possible rate?
OR
Is the one other factor I am about to describe responsible?
The one other factor:
The clock battery is dead and there was a power failure at 4am that day.
The system clock reset to 1969.
Of course, nobody reset it.
Is mail.app one of the apps that the finder message warns "may behave erratically"?
(a GROSS simplification) does it have a bit of code like:
1 check time-of-last-send-mail-attempt
check newest-item-in-outbox
if newest-item more recent then last-send-attempt
do send-mail and record time-of-last-send-mail-attempt
and go to 1
else wait X minutes and go to 1
which, if the clock was mis-set to 1969 would always record a last-send-attempt prior to anything in the outbox and trigger a send loop.
Does anyone know if either Mail is tenacious about sending to a bad .mac address, or gets ridiculous under this circumstance for bad-clock-set?
MarcI am hoping someone can help with a fine detail of mail.app (v2.1.3) behavior.
I had an incident where an iMac sent out 200+ smtp hits a minute and was tossed of the network for presumed zombie spaming.
I think I have actually tracked the problem to an unfortunate conjunction of circumstances that is actually innocent (if still annoying)
Let me set up the story:
1. This is a common use computer, so Mail is not configured (except that it is --I'll get to that in a moment) and
2. Safari will invoke Mail when you click on an "email link"
Mostly everyone just quits mail if they goof and click an email link.
BUT some time ago at least one person invoked Mail and composed a message. This message, naturally, remained in the outbox ever since. That person learned that they can't send email that way, so ever since they just cmd-Q Mail.
BUT Before this person learned, they walked through the mail-config and told mail to try hitting smtp.mac.com:"nonExistantUser".
So that covers the lead-up. Two days ago, mail was invoked via a Safari link, BUT it wasn't quit, it was sent to the background.
Where it undoubtedly tried to send the outbox repeatedly until it was kicked off the network.
Here is what I don't understand:
Under this scenario of a mis-configured .mac address, will mail repeatedly try and fail to smtp at the maximum possible rate?
OR
Is the one other factor I am about to describe responsible?
The one other factor:
The clock battery is dead and there was a power failure at 4am that day.
The system clock reset to 1969.
Of course, nobody reset it.
Is mail.app one of the apps that the finder message warns "may behave erratically"?
(a GROSS simplification) does it have a bit of code like:
1 check time-of-last-send-mail-attempt
check newest-item-in-outbox
if newest-item more recent then last-send-attempt
do send-mail and record time-of-last-send-mail-attempt
and go to 1
else wait X minutes and go to 1
which, if the clock was mis-set to 1969 would always record a last-send-attempt prior to anything in the outbox and trigger a send loop.
Does anyone know if either Mail is tenacious about sending to a bad .mac address, or gets ridiculous under this circumstance for bad-clock-set?
Marc -
ICal, Mail and Finder times all stuck since upgrade! System clock O.K.
Very strange problem:
All of my calendar event times (in iCal), email message receipt times (in Mail), and file modification/creation times (in Finder) are listed as some time between 7:00-7:59 AM or PM, regardless of time of day! My system clock (as it appears in the menu bar) is fine!
More details:
iCal: the events still look like they're at the right times, i.e. the blocks are in the right places, with the correct spacing, etc etc, they are just labeled with times between 7:00-7:59 AM/PM. Similarly, alarms go off at the correct time. Also, in the day or week listing, the column on the left which is supposed to show times instead just says "Sat" for all times, except "Noon" (at noon).
This is continuous since upgrading to snow leopard a couple weeks ago. Seemingly no other problems besides this.
I don't know much about the OS, but I don't understand how the system clock (in the menu bar) could be fine, but every other sign of time-keeping is completely off. I just its just something about the labeling of times, instead of the actual record of them?!
I have screen shots of the problems if that might help clarify (apparently I can't attach them however).
Thanks for your help!Hi,
Any solutions to your problems?
Just found my Mom has the same 'time stuck' problem (iMac OS X 10.6.7) Finder 'Date Modified' is stuck at 2/14/2011. Also, the Time/Date displays correctly on the Menu bar but when click on it, the drop down menu shows a gray out 2/14/2011, etc.
Much appreciated of any help. Thx.
-MasterMoo -
When is Apple going to fix the problem with slow Time Machine backups with Mavericks?
I have been with Apple tech support and they got my Time Machine working by doing a spotlight re-indexing and a safe boot. This worked for about three days and I am back to very slow backups. It is impossible for Time Machine to back up every hour when it takes six hours to do the back up. I don't want to take hours to re-index with spotlight all the time. I think taking six hours to do an incremental backup is a bit much. I see that there are many people that have this trouble and it all started with an upgrade to Mavericks. The question is when is Apple going to fix this problem of slow backups with Time Machine for Mavericks. I have wasted more time than I care to. I am think of going back to Windows. I need good solid backups of my machine and Apple has taken it away with the new Mavericks. Oh, I am using the UBS 3.0 connection so the drive should not be the problem. Also this has occurred in about the last five months, so I am not sure this problem was in the original Marvericks.
Allen Thanks for your reply. All I can say is several months ago Time Machine quit working in a reasonable manner. Right now I have a Time Machine backup that has been running all night and still has three hours to go to backup 6 GB of data. I am using a OWC 1.5 TB drive connected directly to my MacBook with a USB 3.0 connection. In the resent past I have added Dropbox, GoogleDrive and a MAMP server on which I am using a program called Learning With Text from Sourceforge. There have been a lot of questions on the forum about people having very slow Time Machine back ups, so it appears to be a general problem. I should also state I am getting this very slow backup after doing the Spotlight re-indexing and the Safe Restart procedure that was told to me by apple support. I have a 750 GB drive in my MacBook Pro which I am constantly trying to keep at a 5% level of free space. This might be a problem also. However, I am working on a lot of things and like to have a lot of things on my drive. Also the heavily loaded drive has not be a problem in the past. This slow backup business started about three months ago, so something has happen in a very short time period. Now it seems even the procedure that Apple support gave me is not working. Currently I am in China and it is difficult to interact with Apple support to solve this problem, but because I am in China having my computer backed up is critical. I have run the EtreCheck and am attaching the results below. I would appreciate any suggestions. If necessary I will clear out more of my hard drive if that appears to be a solution. The Time Machine drive was recently reformed so I only have a few backups on it. I also don't run the Time Machine all the time as I don't want multi-hour backups running all the time. I run it every few days.
Here is the info from EtreCheck:
Hardware Information:
MacBook Pro (15-inch, Mid 2012)
MacBook Pro - model: MacBookPro9,1
1 2.6 GHz Intel Core i7 CPU: 4 cores
8 GB RAM
Video Information:
Intel HD Graphics 4000 - VRAM: 1024 MB
NVIDIA GeForce GT 650M - VRAM: 1024 MB
System Software:
OS X 10.9.2 (13C1021) - Uptime: 0 days 10:18:59
Disk Information:
APPLE HDD HTS727575A9E362 disk0 : (750.16 GB)
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 749.3 GB (54.06 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
HL-DT-ST DVDRW GS31N
USB Information:
VIA Labs, Inc. USB3.0 Hub
OWC Elite Pro mini C 1.5 TB
EFI (disk1s1) <not mounted>: 209.7 MB
NewMBP-TimeMachine-1.1 (disk1s2) /Volumes/NewMBP-TimeMachine-1.1: 1.5 TB (691.6 GB free)
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Apple Inc. Apple Internal Keyboard / Trackpad
Logitech USB Receiver
Thunderbolt Information:
Apple Inc. thunderbolt_bus
Gatekeeper:
Mac App Store and identified developers
Kernel Extensions:
[not loaded] com.LaCie.ScsiType00 (1.2.2) Support
[not loaded] com.lacie.driver.LaCie_RemoteComms (1.0.1) Support
[not loaded] com.oxsemi.driver.OxsemiDeviceType00 (1.28.0) Support
[not loaded] com.roxio.BluRaySupport (1.1.6) Support
[not loaded] com.roxio.TDIXController (2.0) Support
[not loaded] com.seagate.driver.PowSecDriverCore (5.0.1) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.0.1) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.0.1) Support
[not loaded] com.seagate.driver.SeagateDriveIcons (5.0.1) Support
[kext loaded] com.symantec.kext.SymAPComm (11.2.2f3) Support
[not loaded] com.symantec.kext.confidentialData (1.4f5) Support
[not loaded] com.symantec.kext.filesecurity (1.4.3f19) Support
[kext loaded] com.symantec.kext.fw (1.0.3f5) Support
[kext loaded] com.symantec.kext.internetSecurity (1.3.2f5) Support
[kext loaded] com.symantec.kext.ips (1.3.1f7) Support
[kext loaded] com.symantec.kext.pf (4.2.1f7) Support
[not loaded] com.wacom.driver.HIDTablet (5.0.1) Support
Startup Items:
cma: Path: /Library/StartupItems/cma
MySQLCOM: Path: /Library/StartupItems/MySQLCOM
ParallelsDesktopTransporter: Path: /Library/StartupItems/ParallelsDesktopTransporter
ParallelsTransporter: Path: /Library/StartupItems/ParallelsTransporter
Tablet: Path: /Library/StartupItems/Tablet
Launch Daemons:
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.adobe.versioncueCS4.plist Support
[loaded] com.barebones.authd.plist Support
[not loaded] com.barebones.textwrangler.plist Support
[loaded] com.bombich.ccc.plist Support
[loaded] com.mcafee.virusscan.eupdate.plist Support
[running] com.micromat.TechToolProDaemon.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[loaded] com.oracle.java.JavaUpdateHelper.plist Support
[loaded] com.prosofteng.DriveGenius.locum.plist Support
[running] com.symantec.avscandaemon.plist Support
[running] com.symantec.deepsight-extractor.plist Support
[running] com.symantec.diskMountNotify.plist Support
[loaded] com.symantec.MissedTasks.plist Support
[loaded] com.symantec.navapd.plist Support
[running] com.symantec.navapdaemonsl.plist Support
[loaded] com.symantec.Sched501-1.plist Support
[loaded] com.symantec.Sched501-2.plist Support
[loaded] com.symantec.Sched503-3.plist Support
[loaded] com.symantec.Sched503-4.plist Support
[running] com.symantec.sharedsettings.plist Support
[running] com.symantec.symdaemon.plist Support
[running] com.symantec.symSchedDaemon.plist Support
[loaded] org.macosforge.xquartz.privileged_startx.plist Support
Launch Agents:
[loaded] com.adobe.CS4ServiceManager.plist Support
[running] com.lacie.safemanager.daemon.plist Support
[running] com.micromat.TechToolProAgent.plist Support
[loaded] com.oracle.java.Java-Updater.plist Support
[running] com.seagate.SeagateStorageGauge.plist Support
[failed] com.sogou.SogouServices.plist Support
[running] com.symantec.uiagent.application.plist Support
[running] net.culater.SIMBL.Agent.plist Support
[loaded] org.macosforge.xquartz.startx.plist Support
User Launch Agents:
[loaded] com.adobe.ARM.[...].plist Support
[loaded] com.adobe.ARM.[...].plist Support
[loaded] com.google.keystone.agent.plist Support
[running] com.wondershare.mobilegodaemon.plist Support
User Login Items:
GeekTool
SIMBL Agent
QQ
Safari
Calendar
Google Drive
Dropbox
Day One
Dictionary
SymSecondaryLaunch
Internet Plug-ins:
Flip4Mac WMV Plugin: Version: 2.2.1.11 Support
FlashPlayer-10.6: Version: 13.0.0.182 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0
Flash Player: Version: 13.0.0.182 - SDK 10.6 Outdated! Update
AdobePDFViewer: Version: 9.5.5 Support
Default Browser: Version: 537 - SDK 10.9
QuickTime Plugin: Version: 7.7.3
OfficeLiveBrowserPlugin: Version: 12.3.6 Support
RealPlayer Plugin: Version: (null) Support
Silverlight: Version: 4.0.51204.0 Support
JavaAppletPlugin: Version: Java 7 Update 55 Check version
Safari Extensions:
Video Converter: Version: 4.0.0
AllMyTube: Version: 4.1.0.0
Open in Internet Explorer: Version: 1.0
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins:
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
User Internet Plug-ins:
QQMail: Version: 1.0.2.0 - SDK 10.7 Support
txftn: Version: 1.0.0.6 Support
3rd Party Preference Panes:
Adobe Version Cue CS4 Support
Flash Player Support
GeekTool Support
Growl Support
Java Support
MacFUSE Support
MenuMeters Support
MySQL Support
Norton\nQuickMenu Support
Paragon NTFS for Mac ® OS X Support
Pen Tablet Support
Perian Support
TechTool Protection Support
Time Machine:
Skip System Files: NO
Mobile backups: OFF
Auto backup: YES
Volumes being backed up:
Macintosh HD: Disk size: 697.84 GB Disk used: 647.49 GB
Destinations:
NewMBP-TimeMachine-1.1 [Local] (Last used)
Total size: 1
Total number of backups: 11
Oldest backup: 2014-03-18 15:09:46 +0000
Last backup: 2014-04-29 23:24:28 +0000
Size of backup disk: Too small
Backup size 1 < (Disk used 647.49 GB X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU:
47% SymAVScanDaemon
7% Finder
7% WindowServer
2% mds
1% NortonAutoProtect
Top Processes by Memory:
385 MB NortonAutoProtect
262 MB mds_stores
180 MB Safari
139 MB WindowServer
115 MB Finder
Virtual Memory Information:
1.15 GB Free RAM
2.87 GB Active RAM
1.83 GB Inactive RAM
1.05 GB Wired RAM
1.02 GB Page-ins
380 MB Page-outs
I hope you can see something that can be fixed. -
Finder has got out of sync with system clock?
For some reason, the system clock is reading the correct time, but the times indicated in Finder for "Date Modified" for every file or app are all wrong.
For example, at 11:45PM (as indicated by the clock in the menu bar) I installed OnyX for the first time, but when I look at the newly-installed app itself in the Applications folder in Finder, in the Date Modified column it says "Today 11:23PM". Also, various different apps and files have identical Date Modified times - several have 12:12PM, several have 8:08AM, and many have 4:16PM.
Two more confirmers that there's a problem - I just created a new folder at 12:35AM, and immediately went to look at it in the Finder - its Date Modified is "Today 12:00AM". And when I start up Plex, its own on-screen clock says "12:00AM" when the clock in the menu bar says 12:40AM.
I've zapped the PRAM and forced a Spotlight reindex, but they've made no difference. Any suggestions?Is the correct Time Zone set for your region of use?
Is the Time set to be coordinated with a network time server?
These are two basic things that could go wrong. There may
be others. I'm not sure at this moment what they may be.
You may have to see if your use of OnyX has somehow
changed the basic system settings; or maybe you did
not use the section most likely in OnyX to be helpful.
Or something else is acting up.
(Looking into my Date Time panel now has me wondering,
since I never look into there. It just works, usually!)
Good luck & happy computing! -
Setting the system time with only Java.
Am trying trying to write a 100% pure java Alarm Clark. One feature I wish to have is to syncronize with the atomic clock.
Is this possible in Java. All I have been able to find is system dependent ways to do it through exec.
Thank you,
JacobWhat do you mean "atomic clock"? Do you wish to synchronize your alarm clock with GMT? If so, you can directly access the National Institute of Standards and Technology's atomic clock on-line...see the site :
http://www.boulder.nist.gov/timefreq/service/its.htm
You could then get the local time from the computer, thus appropriately adjusting your clock. Synchronizing your system clock to the atomic clock is system-dependent, as mentioned by the other respondent. -
Java Thread.. System Clock gets slower..
Hello All!
I have never came accross such problem in my last 4 years of java development but right now its sucking my brain like any thing..
Let me clerify what my application is doing.
A node which is basically thread is executed and as it performs its job it is stopped by breaking the while loop like logic and then a method isRunnable() is called to calculate the time to run the thread again on the basis of pre-defined schedule (e.g. after 1 minute). so what i was doing in this method i was calling wait (sheduledMinutes*60*1000).
There are multiple nodes which can be run in parallel. Problem occured when some nodes started immediately or after a time much shorter than the value defined in wait() method.
So as an alternative way i decided to not rely on wait() and wrote my own implementaion i.e. i call wait(1000) in isRunnable() and the check if the current system time is less then the scheduled time. But it didn't work either.
The problem revealed when i printed the valued of current time taken by the system and the scheduled one. The System clock gives the current time which is less than the actual System time shown on windows clock. I dont know why but it seems like as my threads continue to run the system clock gets slower or something and returns an old time. Hence nodes start immediately.
Any solution to this problem would be highly appreciable.
Regards,Well yeah u r right. I figured it out that it was just my threads running slowly. But the threads ran immediately there was another reason for that. My threads were waiting for the sheduled minutes to run again. In the mean while if i presed the stop button to stop the thread i was just setting the stop variable value to true. Which was basically the check in the while loop in run method. U can notice the thread still sleeping due to the call to wait method. And then if again mean while i press start button i called System.gc(). and then pass the current thread to new Thread like Threa t = new Thread(node); t.start();
Now u can c another thread has been created but the last one was not collected by the garbage collector as it was still waiting and doing something ofcourse not dead. So now when new thread stops these was a possiblity of last thread ( one in waiting state) to run according to schedule and it make the current thread run immediately.
I hope u can understand how difficult it was for me to figure this thing out :)
But after 3/4 hours hair tearing i got the bug and then when i was stopping a thread i infact broke the waiting loop as well. Now the thread was dead and collected by garbage collector before new thread could start :)
Hhhhhhhhhhhhhh sometimes programmign really sucks.
Have fun. and thanx for ur concern..
Regards -
Time valuation with and without clock times --- Plzz help
hi experts
Please help me by explaining the following.
1) Please explain me the differnces between time valuation with
clock times(T555Z) and time evluation without clock time(T555Y).
2) Please explain the differences in time types and processing types and functions procedure used in time evaluation with clock time and in time evaluation with out clock times.
3) What is the major differences in the schema between time evaluation with clock times and with out clock time?
Thanx in advance for help and Points will be rewarded in full.
regards,WITH CLOCK TIME
It processes time data that has been imported to the SAP system from time recording subsystems and data that has been recorded online. Those time events (in/out timing) will be stored in 2011 which will be used in schema processing.
Without clock time
to evaluate the time data of employees who enter only exceptions to the work schedule. Processing in this component assumes that times are expressed as the duration of work, and not the start and end times of work times and employee absences
Clock times are not required for evaluation of time data
T555y is used for processing work times (function Types)
T555z is used for breaks processing in time schemas (function Types)
2. NO difference in the way they are used
3. Schema TM00 (clock times) is a standard schema, used to evaluate employee time data that has been recorded at time recording terminals and that specifies clock times.
Schema TM01 is a standard schema used to evaluate the time data of employees for whom only deviations from the work schedule are recorded. -
Query Designer slows down after working some time with it
Hi all,
the new BEx Query Designer slows down when working some time with it. The longer it remains open, the slower it gets. Especially formula editing slows down extremely.
Did anyone of you encounter the same problem? Do you have an idea, how to fix this. To me it seems as if the Designer allocates more and more RAM and does not free that up.
My version: BI AddOn 7.X, Support Package 13, Revision 467
Kind regards,
PhilippI have seen a similar problem on one of my devices, the 'Samsung A-920'. Every time the system would pop up the 'Will you allow Network Access' screen , the imput from all keypresses from then on would be strangely delayed. It looked like the problem was connected with the switching from my app and the system dialog form. I tried for many many long hours / days to fix this, but just ended up hacking my phone to remove the security questions. After removing the security questions my problem went away.
I don't know if it's an option in your application, but is it possible to do everything using just one Canvas, and not switch between displayables? You may want to do an experiment using a single displayable Canvas, and just change how it draws. I know this will make user input much more complicated, but you may be able to avoid the input delays.
In my case, I think the device wasn't properly releasing / un-registering the input handling from the previous dialogs, so all keypresses still went through the non-current network-security dialog before reaching my app.
Maybe you are looking for
-
I would like to revert back to the previous version of Firefox. Please tell me how to do this
-
I need to print Html Page into my printer, how can I do this. Any help will be appreciated. Wil
-
I have been trying to download my copy of Mountain Lion for last 3 days and the download is stuck at 53.25mb. I tried all of the restart/ Cookies deletion that apple support staff recommended to no avail. Download starts from begining and once it's 5
-
X6: why is there no photo album option in the gall...
why is there no photo album option in the gallery? other units like the N79 had this option.. but i dont get why they didnt include it with X6 that sucks... ive had alot of trouble finding reliable and working photo programs that allow photo album...
-
Speech in Word for Office 2004
Does Microsoft Word in Office 2004 for Mac include speech recognition? Is there a way to dictate text to Word? -Paul