Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Timer vs. sleep vs. of_wait

2 posts in Pocket PowerBuilder Last posting was on 2003-07-28 15:02:40.0Z
nosoam_pbritton Posted on 2003-07-28 14:16:17.0Z
Sender: 61a1.3f252ecc.1804289383@sybase.com
From: nosoam_pbritton
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Timer vs. sleep vs. of_wait
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f253031.61e8.846930886@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 28 Jul 2003 07:16:17 -0700
X-Trace: forums-1-dub 1059401777 10.22.241.41 (28 Jul 2003 07:16:17 -0700)
X-Original-Trace: 28 Jul 2003 07:16:17 -0700, 10.22.241.41
Lines: 18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:36
Article PK: 265912

I have an application which runs as a Windows service on a
server. It processes some data, goes to "sleep" for a few
minutes, then starts over. It starts up when Oracle starts,
and never stops executing (on purpose, that it).

My question is, in order to implement the going to sleep and
waking up, is there any consideration other than algorithm
and personal style, to use a Timer vs. the "sleep(n)"
statement or inv_datetime.of_wait(n). And, what is the
difference between "sleep" and "of_wait"?

And last but not least, is there any reason to NOT use BOTH
a timer and the sleep statement in the same app, depending
on what I'm trying to do.

Any enlightenment would be appreciated. Tahnks!

Anythere any difference


nospam_pbritton Posted on 2003-07-28 15:02:40.0Z
Sender: 63a5.3f253afa.1804289383@sybase.com
From: nospam_pbritton
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: Timer vs. sleep vs. of_wait
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f253b10.63a8.846930886@sybase.com>
References: <3f253031.61e8.846930886@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 28 Jul 2003 08:02:40 -0700
X-Trace: forums-1-dub 1059404560 10.22.241.41 (28 Jul 2003 08:02:40 -0700)
X-Original-Trace: 28 Jul 2003 08:02:40 -0700, 10.22.241.41
Lines: 2
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:37
Article PK: 265914

Sorry, I posted this in the wrong group.