Share this article

Latest news

With KB5043178 to Release Preview Channel, Microsoft advises Windows 11 users to plug in when the battery is low

Copilot in Outlook will generate personalized themes for you to customize the app

Microsoft will raise the price of its 365 Suite to include AI capabilities

Death Stranding Director’s Cut is now Xbox X|S at a huge discount

Outlook will let users create custom account icons so they can tell their accounts apart easier

Windows 10 Anniversary Edition will make running apps in the background easier for developers

2 min. read

Published onJune 7, 2016

published onJune 7, 2016

Share this article

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

As much as you might love an app, you can’t have it running front and center all of the time. When you have to toss an app into the background to work on something else, it’s important that the code behind it is ready to shut down or otherwise inhibit key processes in order to cut down on memory usage.

The Windows 10 Anniversary Update is going to be adding a new option that’s going to make running apps in the background a lot easier,according to a recent Windows blog post. The addition of new background triggers (which take the form of the EnteredBackground and LeavingBackground events) is going to make a world of difference for developers trying to better optimize the memory usage of apps, and the differences will be noticed by users who have lower end computers, or just need to run a whole lot of programs at once.

Here’s the gist:

Interested in running your application in the background? A new developer option available in the Windows 10 Anniversary Update just made background activity a whole lot easier. Your feedback was clear on the multiple process model: while doing background work in a separate process was more resilient, it required significantly more code to implement. From this feedback we are able to provide a new option, a simplified method for enabling background activity without creating a background task. Now developers have the choice of running code in the background as either a separate process or directly inside the foreground application. We’ll cover the basics for all the tools which utilize the single process model:

The blog post provides a great deal of detail on how to implement the new background triggers, including code snippets and unsupported scenarios. If you’re a developer, check out the new capabilities coming in Windows 10 Anniversary Update and let us know in the comments how this will help you write better-performing apps.

Radu Tyrsina

Radu Tyrsina has been a Windows fan ever since he got his first PC, a Pentium III (a monster at that time).

For most of the kids of his age, the Internet was an amazing way to play and communicate with others, but he was deeply impressed by the flow of information and how easily you can find anything on the web.

Prior to founding Windows Report, this particular curiosity about digital content enabled him to grow a number of sites that helped hundreds of millions reach faster the answer they’re looking for.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Radu Tyrsina