Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Parallel.ForEach behavior

AddThis Social Bookmark Button
Parallel.ForEach behavior this post is a direct continuation for the previous post about "Real-life story: Blocking Collection". (Real-life story: Blocking Collection).ContinueWith (t => this post);
or
await (Real-life story: Blocking Collection);
this post; my colleague Bram Veldhoen has suggest to demonstrate the behavior of the Parallel.ForEach thread's hunger in more pure fashion which doesn't include BlockingCollection or any other high level Enumerable. the following code demonstrate the issue by using a slow
Enumerable:
Code Snippet
private static int _getInt = 0; public static IEnumerable GetInts() {     Thread.Sleep(30 * 5000);     yield return Interlocked.Increment(ref _getInt); }   private static Timer _tmr; private static void Main() {       _tmr = new Timer(state =>         {             var p = Process.GetCurrentProcess();             int workerThreads, ioThreads;             ThreadPool.GetAvailableThreads(out workerThreads, out ioThreads);             Console.WriteLine("Thread Count = {0}, Available ThreadPool Threads = {1}",                 p.Threads.Count, workerThreads);         }, null, 0, 1000);     Parallel.ForEach(GetInts(), i => { });     Console.ReadKey(); }
when running this code we can see the following output: we can see that...(Read whole news on source site)

Windows Phone + SignalR = Awesome Possibilities!

AddThis Social Bookmark Button
  Real-time communication. Many software applications on variety of platforms & form factors have a genuine need for it. But persistent networks, real-time connectivity & asynchrony continue to challenge us developers in building such applications. Is there a silver lining? Could we have near-real-time communication in our mobile apps? Imagine the possibilities. Download Source Code   Live Demo Now, let’s do something a little fun before we get to the crux of what this article is about. How about a live demo of the sample application in action? Works from anywhere on earth with a data connection; in fact, more & diverse the user demographics, the merrier. Let’s do this: This demo will work with your Windows Phone emulator; but better with your unlocked Windows Phone that can side-load apps, given XAP or source code. Download the Source Code & extract the Windows Phone...(Read whole news on source site)

Video: Structuring JavaScript with the Revealing Module Pattern

AddThis Social Bookmark Button
This sample video from Pluralsight’s Structuring JavaScript Code course provides an introduction to the Revealing Module Pattern and demonstrates how it can be used to convert “function spaghetti code” to more structured code that’s re-useable and easier to maintain. If you’d like additional details about using the Revealing Module Pattern as well as other patterns that can be used to structure your JavaScript code view my post here.  
Additional courses

Windows Web Applications: Declarative Data Binding

AddThis Social Bookmark Button
The goal of this blog post is to describe how declarative data binding works in the WinJS library. In particular, you learn how to use both the data-win-bind and data-win-bindsource attributes. You also learn how to use calculated properties and converters to format the value of a property automatically when performing data binding. By taking [...]

The Morning Brew #1052

AddThis Social Bookmark Button
Had a great start to the MVP Summit yesterday at GeekGive where we collectivly packed over 7500 pounds of beans - find out more over on the MVP Award Blog Software Nancy v0.10.0 - The next step in awesome - Andreas Håkansson announces the release of Nancy v0.10.0, the latest release of the Nancy lightweight web framework. [...]

Getting Started with XAML: Slides and demos

AddThis Social Bookmark Button
At the South Florida Code Camp last week, I gave an early morning talk titled "Getting Started with XAML". In this talk, I covered the basics of XAML, the property system, layout, and other things you need to know as a XAML developer for WPF, Silverlight, or Windows 8. Slides Attached to this post Demos It was all real-time stuff in this talk. No downloadable demos. I encourage you to use the Getting Started content on MSDN: Build your first Silverlight web application Build your first desktop RIA application with Silverlight Both include downloadable code in both C# and Visual Basic. My Silverlight Book Silverlight 5 in Action I also have a Windows 8 XAML
book in progress. More on that when it gets closer to publication Related Links Home: Silverlight.NET Windows Dev Center (for Windows 8 Metro XAML) The Official Microsoft WPF and Windows Forms Site
...(Read whole news on source site)

Inter-Process Communication using MemoryMappingFile

AddThis Social Bookmark Button
In an operating system, a Memory Mapping file are virtual storage place which has direct byte to byte correlation between the Virtual Address Space and the corresponding physical storage. So when we access the Virtual Address space via a memory mapping file we are directly communicating with the kernel space where the file is actually loaded. The portion of calculation between the physical storage and logical storage is hence avoided.

Memory Mapping files allows application to access files in the same way as memory. Generally as address between the physical storage and virtual memory address space, we cannot access the physical
address directly. But using Memory Mapping Files, the process loads a specific range of address within the process address space with which the storage of memory into the file can be done by just assigning value to a dereferenced pointers. The IO operation on a MemoryMapping file is so fast that from the programmers point of view it seems to be like accessing the memory rather than actual physical storage. To increase performance memory mapping files are not actually stored to the disk file as well, but rather it will be stored automatically in background when FlushViewOfFile is executed or...(Read whole news on source site)

The .NET Micro Framework and .NET Gadgeteer

AddThis Social Bookmark Button
At the South Florida Code Camp last week, I presented the ".NET Micro Framework and .NET Gadgeteer". The primary demo was the Gadgeteer diaper monitor, but I also showed off hardware, wired some LEDs to the Netduino etc. PowerPoint Slides Attached to this post Demos and Code The .NET Gadgeteer Diaper Alarm Part 1 (Moisture Sensor) Building a .NET Gadgeteer Compatible Hardware and Software Module: Der BlinkenLED Getting Started with .NET Gadgeteer Part 2: A Larson Scanner with Button, Potentiometer and Progress Display Update to .NET Gadgeteer Larson Scanner Accepting MIDI Serial Input with the Netduino Parsing Serial MIDI Messages with the Netduino Related Links Open Source Hardware and

Home