<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx</link><description>Modern operating systems take a different view of the resources on the system. Regardless of the form factor, it is important for the OS to more effectively manage resource utilization than in the past. Currently, it is far too easy for a single process</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10297217</link><pubDate>Tue, 24 Apr 2012 15:33:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10297217</guid><dc:creator>JamesJohnston</dc:creator><description>&lt;p&gt;As others have noted, you need more flexibility with running Metro apps in the background. &amp;nbsp;We have some ideas for products we might like to bring to the Metro/Windows 8/Windows Phone platform in the future, but some of the restrictions on Metro apps, such as the suspension of background apps, could preclude this - that would be a real shame.&lt;/p&gt;
&lt;p&gt;Windows provides built-in background tasks, you say? &amp;nbsp;As in, we just need to find the right background task, and then our Metro app can be suspended? &amp;nbsp;OK, fine, where is the background task for doing the complicated 3D algorithms our software would require? &amp;nbsp;The answer is what I thought....&lt;/p&gt;
&lt;p&gt;The reality is our software might need to do some very CPU intensive computations for a few minutes on a background thread. &amp;nbsp;During this time, we need to *not* be suspended if the user switches away from our app to, say, check their e-mail while they wait. &amp;nbsp;The user *knows* we are going to be doing computations, they will know this will cost them battery life - but results don&amp;#39;t come for free, and there is no getting around the fact that CPU cycles must be spent on calculations. &amp;nbsp;The least we can do, and what we would like to be able to do, is let the user (1) switch to another app while allowing computations to continue, (2) set the priority of the thread to low, so that we can keep other apps fast and fluid while we work. &amp;nbsp;We may also need to interface with a hardware device in the background. &amp;nbsp;Once again, background suspension will absolutely break this.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the reality, a lot of useful business apps are going to need to do custom business logic in the background. &amp;nbsp;We&amp;#39;re doing a lot more than just playing MP3 files, for heaven&amp;#39;s sake!! &amp;nbsp;There is *no way* you will ever be able to cover every background task an app might need to do.&lt;/p&gt;
&lt;p&gt;Perhaps when installing the app, you can display a warning that the app multitasks and may compromise battery life. &amp;nbsp;This would be great for filtering out the random poorly-written 99 cent apps from an app store that don&amp;#39;t really have any business running in the background. (Does a simple loan calculator app need to run in the background? &amp;nbsp;Of course not; if I was installing such an app that requested this kind of thing, I would probably find another app.) &amp;nbsp;But our users are serious users about our software and are going to be using it for a specific application; suspending it in the background would really break it. &amp;nbsp;In fact, they would probably buy a Windows 8 device just for the express purpose of running our software.&lt;/p&gt;
&lt;p&gt;If an app&amp;#39;s thread is well-written and uses blocking APIs with infinite timeouts (e.g. WaitForSingleObject with infinite timeout), there is no reason in my mind that the entire private working set can&amp;#39;t be paged out to disk - the app is not actually requiring memory or CPU. &amp;nbsp;Poorly-written threads would periodically wake (e.g. using Sleep) and poll/check something, or heaven forbid, spin in a loop and burn CPU cycles. &amp;nbsp;Either of these activities are bad for battery life and memory pressure. &amp;nbsp;Maybe you could add a performance metric that calls out the number of times an app wakes any of its threads in a minute, for example? &amp;nbsp;This could quickly weed out the bad apps that are waking when they don&amp;#39;t need to.&lt;/p&gt;
&lt;p&gt;Use the Windows Desktop, that&amp;#39;s what it&amp;#39;s for, you say? &amp;nbsp;The writing is obviously on the wall for the desktop. &amp;nbsp;You&amp;#39;re not supporting user-written desktop apps on Windows on ARM, and the Windows 8-based Apollo I doubt will even have the desktop. &amp;nbsp;That means you are basically forcing a Metro-only future on us (even if you haven&amp;#39;t publicly announced it yet - this is apparently what you see 10 years from now once desktop apps fade from view). &amp;nbsp;Both of these devices (ARM tablets/laptops, and phones) could potentially be useful devices that our users will want to use. &amp;nbsp;The advances in mobile hardware of the last few years have been incredible - they are faster than the desktop computers of yesteryear. &amp;nbsp;Let us use the power available in such a small form factor!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10297217" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10297214</link><pubDate>Tue, 24 Apr 2012 15:32:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10297214</guid><dc:creator>DEVPROCB</dc:creator><description>&lt;p&gt;@ Bryan K&lt;/p&gt;
&lt;p&gt;The biggest problem with this entire article, is the assumption that Microsoft is as small as Apple. Apple is a consumer company. They make products for consumers. Also remember Apple is a Hardware company. You must run there hardware to run there software. Microsoft is a Software Company. Building a platform which is &amp;quot;hybrid&amp;quot; as you have stated is essential. As you have also stated you had a &amp;quot;hackintosh&amp;quot;;you had to basically either write drivers which are very in-efficient and caused more headaches then ever or run a system in verbose mode which functioned semi okay, and you still found your self trying to buy hardware similar to apple to get it to even run. The windows 8 operating system is actually going in the right direction. Not cutting the business relationships with Microsoft which is a very solid business model. It appears you have a lot to learn about the huge differences between Apple and Microsoft. You make reference to, &amp;quot;Who needs Win 32 Apps&amp;quot;. Businesses do! Just because a consumer buys the next greatest thing, does not mean businesses can afford to just use an &amp;quot;app&amp;quot; that has no true meaning to there business. Apple has the ability to just discontinue support on apps of there older operating system, because lets face it, apple only came back in the lime light because of the iphone. No one owned mac, besides a niche market of people that were apple eccentric. Looks like you are talented and are heading in the right direction but maybe a little history to look back in the past will help you understand the direction Microsoft has to take with windows 8. The ability to support both business models is key to keep there market share, and maintain huge support of business, and consumer alike. Apple has a different business model, because they came later in the game essentially, and what I mean by that, as before steve jobs came back in,the company was almost bankrupt. So the ability to reinvent and tackle new tasks was much easier, because if it failed there would be no apple, thankfully for them it worked and behold the Iphone!. Good luck in your career&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10297214" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296613</link><pubDate>Mon, 23 Apr 2012 16:05:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296613</guid><dc:creator>Ecoli</dc:creator><description>&lt;p&gt;Windows 8 Consumer Preview works OK, but when I create a new folder on a good flash USB disk, Windows Explorer takes too long to create it (about 4 or 5 min.). Hope Microsoft will fix this soon.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296613" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296575</link><pubDate>Mon, 23 Apr 2012 15:22:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296575</guid><dc:creator>pmbAustin</dc:creator><description>&lt;p&gt;This is a general question/observation:&lt;/p&gt;
&lt;p&gt;With WinRT and Metro on Win8, Microsoft is pushing into the consumer tablet space in a big way. &amp;nbsp;Consumers are used to major OS updates and new features at least annually (thanks to iPhone, WP7, Android, and iPad). &amp;nbsp;Is Microsoft going to compete here, updating Metro features and abilities every year?&lt;/p&gt;
&lt;p&gt;If so, will these updates be made to Win8/Pro/Enterprise too? &amp;nbsp;And how will that dove-tail with businesses and enterprises prefering stability, and NOT having to update every year? &amp;nbsp;Will this lead to a fragmented Metro market?&lt;/p&gt;
&lt;p&gt;If not, how will Microsoft keep excitement about Metro/WinRT up over time, and compete with the constantly updating Android and iOS tablets out there?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296575" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296525</link><pubDate>Mon, 23 Apr 2012 13:32:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296525</guid><dc:creator>philk</dc:creator><description>&lt;p&gt;What script are you using to start the metro apps? Can you make it available please?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296525" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296234</link><pubDate>Sun, 22 Apr 2012 17:46:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296234</guid><dc:creator>Alex Kven</dc:creator><description>&lt;p&gt;@David&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sure you will be happy to know that Microsoft has been working on a new OS that has metro disabled by default, and will satisfy almost all of the metro-haters and people who write destructive criticism on our blog.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s called Windows 7.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296234" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296197</link><pubDate>Sun, 22 Apr 2012 10:25:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296197</guid><dc:creator>Micle</dc:creator><description>&lt;p&gt;Great Article :)&lt;/p&gt;
&lt;p&gt;We can also submit our .net related links on &lt;a rel="nofollow" target="_new" href="http://www.dotnettechy.com"&gt;http://www.dotnettechy.com&lt;/a&gt; to improve traffic.&lt;/p&gt;
&lt;p&gt;The dotnettechy.com is a community of .Net developers joined together to learn, to teach, to find solutions, to find interview questions and answers, to find .net website / blog collection and to have fun programming. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296197" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296194</link><pubDate>Sun, 22 Apr 2012 09:21:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296194</guid><dc:creator>Bob</dc:creator><description>&lt;p&gt;@David&lt;/p&gt;
&lt;p&gt;The next version of this blog will allow the ability to 100% turn off Metro-hating trolls.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296194" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296187</link><pubDate>Sun, 22 Apr 2012 06:40:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296187</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Will the release version of Windows 8 allow the ability to 100% turn off Metro? &amp;nbsp;(Please say yes)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296187" width="1" height="1"&gt;</description></item><item><title>re: Reclaiming memory from Metro style apps</title><link>http://blogs.msdn.com/b/b8/archive/2012/04/17/reclaiming-memory-from-metro-style-apps.aspx#10296127</link><pubDate>Sat, 21 Apr 2012 18:11:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10296127</guid><dc:creator>Pol</dc:creator><description>&lt;p&gt;Windows 8 is so 5 minutes ago. Move on to Windows 9!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10296127" width="1" height="1"&gt;</description></item></channel></rss>