![]() |
Re: [User feedback request] Shepherd
Define "really efficient timer-based trigger mechanism". I use three ways of time-based triggering - alarmd, cron and asynchronous sleep(). The first one is good because AFAIK it can wake up the device even if it's turned off and uses almost no additional resources. Cron is, well, cron. Sleep() is far more precise and can be employed en masse if you can live with the resource penalty (we calculate when the event should occur and launch a thread that starts with sleep() at the beginning). If this does not answer you question, please elaborate :)
|
Re: [User feedback request] Shepherd
Quote:
Most of the events I'm thinking about wouldn't need that kind of precision... it could be off by several minutes and it wouldn't matter to me. |
Re: [User feedback request] Shepherd
Quote:
Quote:
|
Re: [User feedback request] Shepherd
Quote:
Quote:
Does anyone know about the level of precision or battery load required in using gobject's timeout_add or timeout_add_seconds? This would save from having to even spawn threads though it would require you to use a gobject main loop. |
Re: [User feedback request] Shepherd
Quote:
Quote:
|
Re: [User feedback request] Shepherd
Quote:
The simplistic way to look at it is that threads and process are implemented on top of the same model. The main difference is whether a Copy-On-Write flag is set or not on the page tables. I'd imagine if you just do a "fork"/"exec" then you end up losing all gains COW gains you. So I would guess the overhead is dependent purely on what you do with the process after the fork. |
Re: [User feedback request] Shepherd
Quote:
|
Re: [User feedback request] Shepherd
I'm not saying that I know what is best... I just am glad to hear that performance considerations are being made from the start. It's a lot easier to think that way (and faster) than to go back and try to create performance at the end when people complain.
Kudos. |
Re: [User feedback request] Shepherd
Hi all,
I have read the thread as it will be very handy to schedule the status of IM, for instance I'd like to set my Skype status to offline when I sleep and do not want to turn off my phone at nights (still need to receive cellular calls). Any news if a test version of Shepherd is available ? Cheers |
Re: [User feedback request] Shepherd
We’re still all waiting for that mythical PR1.2 :(
|
All times are GMT. The time now is 20:53. |
vBulletin® Version 3.8.8