LWN.net Logo

Timer slack for slacker developers

Timer slack for slacker developers

Posted Oct 17, 2011 22:38 UTC (Mon) by mjg59 (subscriber, #23239)
In reply to: Timer slack for slacker developers by josh
Parent article: Timer slack for slacker developers

gmail doesn't - what I was replying to there was a query about why javascript is run at all in background tabs.


(Log in to post comments)

Timer slack for slacker developers

Posted Oct 17, 2011 22:54 UTC (Mon) by brother_rat (subscriber, #1895) [Link]

The N900 browser suspends Javascript if you switch away from the browser view (there's an option for how quickly to do it I think). It does seem to break a not insignificant number of websites, such as 'live updating' news/sport stories on the BBC.

Timer slack for slacker developers

Posted Oct 18, 2011 9:38 UTC (Tue) by ab (subscriber, #788) [Link]

N900 (and N9, N950 as well) do have a user-space framework to coordinate wakeups from applications themselves. This is used by almost all networking applications to coordinate their wakeups. https://meego.gitorious.org/meego-middleware/libiphb/blob... is client side API, while https://meego.gitorious.org/meego-middleware/dsme/trees/m... is server-side part of overall device state management.

Of course, it requires changes from the application side and also a common coordination mechanism. Adding such changes to applications isn't that hard, the API is rather simple. What is more important is that apps will anyway need changes to determine their own periods of inactivity.

Perhaps it will be helpful to have a kernel-side mechanism to get overall configuration easier but the situation as described in the article wakes memories of Android kernel vs upstream kernel debates for the similar use on the kernel side.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds