c# Programming Glossary: tasks
When to use thread pool in C#? http://stackoverflow.com/questions/145304/when-to-use-thread-pool-in-c One book recommended using the thread pool for small tasks only whatever that means but I can't seem to find any real guidelines... share improve this question If you have lots of logical tasks that require constant processing and you want that to be done.. the pool scheduler. If you need to make your IO related tasks concurrently such as downloading stuff from remote servers or..
Tips for optimizing C#/.NET programs [closed] http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs choices as to how to best optimize their instrument to the tasks it is designed to perform. That performance analysis is a lost..
High Quality Image Scaling C# http://stackoverflow.com/questions/249587/high-quality-image-scaling-c-sharp as an example of how to perform certain image manipulation tasks in C#. You'll be interested in the ResizeImage function that..
How Can I Set Processor Affinity in .NET? http://stackoverflow.com/questions/2510593/how-can-i-set-processor-affinity-in-net Processor Affinity in .NET Can we set two threads or two tasks to execute with different processor affinity in a C# application..
How to call a method daily, at specific time, in C#? http://stackoverflow.com/questions/3243348/how-to-call-a-method-daily-at-specific-time-in-c requirements well Thank you c# winforms methods scheduled tasks share improve this question Create a console app that does..
Task parallel library replacement for BackgroundWorker? http://stackoverflow.com/questions/3513432/task-parallel-library-replacement-for-backgroundworker with a wizard style UI and it does some long running tasks. I want to be able to have a responsive UI with the standard.. it naturally supports nesting parent child tasks uses the new cancellation API task continuations etc. I have.. way of doing things. I do have a small helper class for tasks that need to report progress because I find the syntax rather..
Is it considered acceptable to not call Dispose() on a TPL Task object? http://stackoverflow.com/questions/3734280/is-it-considered-acceptable-to-not-call-dispose-on-a-tpl-task-object to run on a background thread. I don't want to wait on the tasks completion. In .net 3.5 I would have done this ThreadPool.QueueUserWorkItem.. come back and bite me when I'm doing lots of fire forget tasks like this and the finalizer thread gets overwhelmed So my questions.. I've missed Or is there another way of doing fire forget tasks with the TPL c# .net multithreading dispose task parallel library..
Best practices for exception management in Java or C# http://stackoverflow.com/questions/409563/best-practices-for-exception-management-in-java-or-c-sharp I can't guarantee success for either of these tasks cut network connection malformed JSON object that is out of..
parse and execute JS by C# http://stackoverflow.com/questions/4744105/parse-and-execute-js-by-c-sharp return parsed summary Performs application defined tasks associated with freeing releasing or resetting unmanaged resources...
How might I schedule a C# Windows Service to perform a task daily? http://stackoverflow.com/questions/503564/how-might-i-schedule-a-c-sharp-windows-service-to-perform-a-task-daily rolling over c# windows services scheduling scheduled tasks share improve this question I wouldn't use Thread.Sleep..
How to use WPF Background Worker http://stackoverflow.com/questions/5483565/how-to-use-wpf-background-worker without ever having to write a thread to preform lengthy tasks but I haven't had any success trying to implement it could anyone.. object sender DoWorkEventArgs e run all background tasks here private void worker_RunWorkerCompleted object sender ..
servicestack REST API and CORS http://stackoverflow.com/questions/8211930/servicestack-rest-api-and-cors whilst we provide convenient behavior to accomplish common tasks we also provide a flexible API that lets you configure any desired..
HttpClient.GetAsync(…) never returns when using await/async http://stackoverflow.com/questions/10343632/httpclient-getasync-never-returns-when-using-await-async when using the new async await language functionality and Tasks API the code always seems to work when using only continuations...
C# - ThreadPool vs Tasks http://stackoverflow.com/questions/1774670/c-sharp-threadpool-vs-tasks ThreadPool vs Tasks As some may have seen in .NET 4.0 they've added a new namespace.. in .NET 4.0 they've added a new namespace System.Threading.Tasks which basically is what is means a task. I've only been using.. task share improve this question The objective of the Tasks namespace is to provide a pluggable architecture to make multi..
Embedding mercurial revision information in Visual Studio c# projects automatically http://stackoverflow.com/questions/2386440/embedding-mercurial-revision-information-in-visual-studio-c-sharp-projects-autom to do any batch files. You can rely on MSBuild and Custom Tasks to do this for you. I've used the extension pack for MSBuild.. using Microsoft.Build.Framework namespace BuildTasks public class GetMercurialVersionNumber Task public override.. that brings in our custom task. UsingTask TaskName BuildTasks.GetMercurialVersionNumber AssemblyFile C Users mpld81 Documents..
How Can I Set Processor Affinity in .NET? http://stackoverflow.com/questions/2510593/how-can-i-set-processor-affinity-in-net way for TPL Task Parallel Library to execute two threads Tasks with high priority to use 100 CPU c# .net multithreading ..
How to call a method daily, at specific time, in C#? http://stackoverflow.com/questions/3243348/how-to-call-a-method-daily-at-specific-time-in-c does what you're looking for Use the Windows Scheduled Tasks functionality to have that console app executed at the time..
Is it considered acceptable to not call Dispose() on a TPL Task object? http://stackoverflow.com/questions/3734280/is-it-considered-acceptable-to-not-call-dispose-on-a-tpl-task-object Toub has posted a blog titled Do I need to dispose of Tasks which gives some more detail and explains the improvements in..
New C# await feature http://stackoverflow.com/questions/4057359/new-c-sharp-await-feature this at PDC yesterday Await is used in conjunction with Tasks parallel programming in .NET. It's a keyword being introduced..
WaitAll for multiple handles on a STA thread is not supported http://stackoverflow.com/questions/4192834/waitall-for-multiple-handles-on-a-sta-thread-is-not-supported share improve this question What about using the Tasks to do your threading for you. http msdn.microsoft.com en us..
How do I abort/cancel TPL Tasks? http://stackoverflow.com/questions/4783865/how-do-i-abort-cancel-tpl-tasks do I abort cancel TPL Tasks In a thread I create some System.Threading.Task and start each.. task abort share improve this question You can't. Tasks use background threads from the thread pool. Also canceling..
Is there a Task based replacement for System.Threading.Timer? http://stackoverflow.com/questions/4890915/is-there-a-task-based-replacement-for-system-threading-timer for System.Threading.Timer I'm new to .Net 4.0's Tasks and I wasn't able to find what I thought would be a Task based.. to wrap the Timer functionality inside a Task with child Tasks all taking advantage of the CancellationToken and returns the.. using System.Threading using System.Threading.Tasks namespace ConsoleApplication7 class Program static void Main..
Recommend a C# Task Scheduling Library [closed] http://stackoverflow.com/questions/507247/recommend-a-c-sharp-task-scheduling-library WorkerRole which immediately rules out Windows Scheduled Tasks at Cron and any third party app that requires installation and..
Turning async socket Parallel and not only Concurrent in very intensive application using TPL http://stackoverflow.com/questions/5834755/turning-async-socket-parallel-and-not-only-concurrent-in-very-intensive-applicat here tell its dont help TPL TaskFactory.FromAsync vs Tasks with blocking methods and someone teach how to do it here whith.. System.Text using System.Threading using System.Threading.Tasks namespace skttool public class StateObject public Socket workSocket..
How to create a task (TPL) running a STA thread? http://stackoverflow.com/questions/5971686/how-to-create-a-task-tpl-running-a-sta-thread ApartmentState.STA How to accomplish the same using Tasks in a WPF application Here is some code Task.Factory.StartNew..
Cancelling a Task is throwing an exception http://stackoverflow.com/questions/7343211/cancelling-a-task-is-throwing-an-exception a Task is throwing an exception From what I've read about Tasks the following code should cancel the currently executing task..
Creating Scheduled Tasks http://stackoverflow.com/questions/7394806/creating-scheduled-tasks Scheduled Tasks I am currently working on a C# WPF project. I need to allow..
Creating threads - Task.Factory.StartNew vs new Thread() http://stackoverflow.com/questions/7889746/creating-threads-task-factory-startnew-vs-new-thread share improve this question There is a big difference. Tasks are scheduled on the ThreadPool and could even be executed synchronous..
Is Async await keyword equivalent to a ContinueWith lambda? http://stackoverflow.com/questions/8767218/is-async-await-keyword-equivalent-to-a-continuewith-lambda special socket awaitables that don't hit the GC as hard . Tasks are powerful but they're not the only awaitables. One more minor..
|