slept too long in select()
Erez D
erez0001 at gmail.com
Wed Dec 25 17:27:46 IST 2013
hello
i've wrote a native c++ program on linux
it uses select to wait on events.
int n=select(maxFd+1,&rfd,&wfds,NULL, &timeval);
some times, time spent in select() is larger than the time originally in
timeval prior to calling select.
i see that many time when i run it on my phone (android).
is it possible that android uses some machanism to susspend and resume
native code
(i know it does so to java)
if so, how can i overcome it ?
thanks,
erez.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20131225/25f2e22e/attachment.html>
More information about the Linux-il
mailing list