简体   繁体   中英

Background task and duration (Windows Phone 7)

I've read a lot of different values for how long a background task can run. Everything from 15 to 30 seconds. MSDN writes 25 seconds.

Does anyone know what the value is for sure? If the value is 25 seconds does it mean that I have 25 seconds to perform my tasks or does the task take some time to start and/or finish?

MSDN seems like it's been updated, as I could swear that it was 15 seconds earlier this year. Anyway, I wouldn't concern myself, because if you can't do the operation in 15 seconds, you're likely to break the memory limit of 5 MB as well.

Also, the time is the execution time from when the ScheduledTaskAgent.OnInvoke is called.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM