Threads
Threads

In this post I am going to talk about Threads in C# and different methods to interact with them. Threads are lower level of abstraction than tasks. A task object represents an item of work to be performed where as thread object represents a process running within an operating system. Threads and Tasks Creation of... » read more

Tasks
Tasks

In this post I am going to talk about creating a task and various method of task library which interacts with task execution in C# Create a task Creating a task is done by providing the method of work to the lambda expression. Start method starts the task and wait method waits for the task... » read more

Strategy Pattern
Strategy Pattern

Strategy pattern is mainly used for composition rather than inheritance. It defines a family of algorithms encapsulates each one and makes them interchangeable. Strategy makes algorithm change independently without client changing it. Strategy decouples algorithm from the client using it which means if I have to change the algorithm, I don’t have to change the... » read more

Parallel LINQ
Parallel LINQ

In continuation to my 100DaysOfCoding, in this post I will talk about Parallel LINQ. Parallel Language-Integrated Query(PLINQ) can be used to allow elements of a query to execute in parallel. Below is a snippet of code which consists of an array of persons. AsParallel Using PLINQ we are selecting the records where the person city... » read more

The Task Parallel Library
The Task Parallel Library

I made up my mind to do couple of challenges starting today for the next 100 days which are #100DaysOfCode and #100DaysOfFitness. I will be publishing a blog every day on my progress on these challenges for the next 100 days. For Coding part, I am planning on doing a Microsoft certification 70-483: Programming in... » read more

My First Half Marathon
My First Half Marathon

I have completed my first half marathon on Mar 2, 2019 with a finish time of 2:29:58. I know it’s not an impressive finish time, but my goal was to complete the run and I am happy that I achieved it. I wanted to share how I made up my mind to register and run... » read more