VS2008 → Tools → Source Control → Visual Studio Foundation Service → Configure User Tools:
|
Thursday, June 25, 2009
Use Beyond Compare with Team Foundation Server in VS 2008/VS2005
Sunday, June 21, 2009
ThreadPool.QueueUserWorkItem() could be very slow
ThreadPool.QueueUserWorkItem() could be very slow if callback being executed as a work item calls Thread.Sleep(). Consider the following example:
The problem is that thread pool waits around 500 ms before allocating a new thread.
You may solve it by pre-specifying a minimal amount of threads in your application:
ThreadPool.SetMinThreads(20, 200);
- using System;
- using System.Threading;
- namespace Test
- {
- class Program
- {
- const int waitTime = 10000;
- static void Main(string[] args)
- {
- for (int i = 0; i < 10; i++ )
- ThreadPool.QueueUserWorkItem( TestProc, i);
- Console.ReadKey();
- }
- static void TestProc(object stateInfo)
- {
- Console.WriteLine("Item number #{0} at {1}", (int)stateInfo, DateTime.Now);
- Thread.Sleep(waitTime);
- }
- }
- }
The problem is that thread pool waits around 500 ms before allocating a new thread.
You may solve it by pre-specifying a minimal amount of threads in your application:
ThreadPool.SetMinThreads(20, 200);
Wednesday, June 17, 2009
Howto: publish metadata for net.tcp endpoint and add reference to WCF service hosted in process/service/console
|
Metadata contains a reference that cannot be resolved net.tcp
Error "Metadata contains a reference that cannot be resolved: 'service reference'. If the service is defined in the current solution, try building the solution and adding the service reference again." could be caused by specifying specific contract rather than IMetadataExchange in Contract section of service endpoint configuration. |
Barrier multithreading primitive in C#
|
Tuesday, June 16, 2009
Productivity tools suite
This post would be periodically updated and contain list of best tools for personal use. (Updated: 23/12/2009) Blogging w.bloggar - free blog editor; integrates with most of blogging platforms. Windows Live Writer – same… slim UI. Productivity
Security
Sound, Music, Video, Images
System
System Tools
|
Thursday, June 11, 2009
Rally toward the multiprocessors and cloud computing
The rally to multiprocessor/grid/cloud computing begins. I think technology starting gradually to approach maturity point, when it's possible to crop money from the technological break. It is especially important, since mentioned areas are essential for the next economy boom/bubble cycle, which seems to ride on energy consumption: |
Notes about future developments in multiprocessign computing
Below are engrossing notes from Intel Developers Conference by my collegue Adam Shaked Gish about future of computing, as Intel sees it.
In order to utilize the MP power you will need two things:
As for C++ libraries they discussed:
As for tools - Intel just released a new suite of tools named "Intel Parallel Studio". It is aimed at making parallel computing available to the mainstream developer. All tools are addins into Visual Studio:
|
Monday, June 01, 2009
Comprehensive list of Debugger Visualizers for Visual Studio
Subscribe to:
Posts (Atom)