Hi Simon,

Yup, on Solaris I ran this and it was 1000 milliseconds for the following:

int theReturn = sqlite3_sleep(1);

Any way you know I can make it sleep on Solaris for 1 millisecond? Any other
C tricks you know of?

Thanks ;-)

Lynton

-----Original Message-----
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Simon Slavin
Sent: 21 November 2010 12:23 PM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] SQLite really SLOW on Solaris?


On 21 Nov 2010, at 10:10am, Lynton Grice wrote:

> in my "queue implementation" I add in a:
> 
> sqlite3_sleep(1);
> 
> Essentially I wanted to sleep for "1 millisecond" between sends to the
queue
> (in the send function itself), so that if the sender is sending too fast
it
> allows receivers to get messages 
> 
> On Debian it sleeps for 1 millisecond, BUT on the Solaris VM it sleeps for
1
> second!!! Not one millisecond......why???

See

<http://www.sqlite.org/c3ref/sleep.html>

Apparently the Solaris implementation of xSleep() is weird.  Just out of
interest, do

int theReturn = sqlite3_sleep(1);

(or some equivalent) on both platforms and look at the values you get
returned.  Do you get 1 on one platform and 1000 on the other ?

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to