Skip to content

Random IT Utensils

IT, operating systems, maths, and more.

  • .NET Internals Cookbook
  • Bio
  • Series and interesting posts
  • Talks, Papers, Workshops
    • Async Biggest C# Mistake
    • Debugging Memory Leaks in .NET
    • DLL Injection in Windows
    • Exploring memory in .NET
    • From Bulb to High Level Language
    • Generics everywhere
    • Hacking C# From the Inside
    • Integer Linear Programming
    • Internals of Async
    • Internals of Exceptions
    • Manual Memory Management
    • Ordering the Chaos
    • Understanding Windows and .NET

Month: October 2019

Concurrency Part 9 — Semaphores with custom locks

October 26, 2019January 2, 2021 ~ Leave a comment

This is the ninth part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET Last time we implemented custom mutex based on memory mapped files. We can use it to track who owns the lock in much simpler way. … Continue reading Concurrency Part 9 — Semaphores with custom locks

Concurrency Part 8 — Tracking mutex owner

October 19, 2019January 2, 2021 ~ Leave a comment

This is the eighth part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET We know how to use global mutexes to synchronize processes. However, there is a big drawback — we don’t know who owns the mutex and … Continue reading Concurrency Part 8 — Tracking mutex owner

Concurrency Part 7 — Semaphores trickery

October 12, 2019January 2, 2021 ~ 1 Comment

This is the seventh part of the Concurrency series. For your convenience you can find other parts in the table of contents in Part 1 – Mutex performance in .NET Last time we examined an interesting behavior of Mutex when it is abandoned. Today we will look into Semaphore. Typical interview question is: what is … Continue reading Concurrency Part 7 — Semaphores trickery

Capturing all output in Powershell

October 5, 2019January 2, 2021 ~ Leave a comment

Today very simple trick to capture whole output from Powershell. Let’s see those files: 1.ps1 2.ps1 3.bat 4.vbs 5.exe 6.exe Let’s now run this with powershell: Okay, we have all STD OUT and STD ERR streams. Let’s now try redirecting this to file: File content: Okay, so standard output was redirected correctly but standard error … Continue reading Capturing all output in Powershell

Recent Posts

  • Custom memory allocation in C# Part 15 — Allocating object on a stack without unsafe
  • Custom memory allocation in C# Part 14 — Unsafe code without unsafe keyword
  • .NET Inside Out Part 26 – Multiple identity inheritance in C#
  • Types and Programming Languages Part 5 – Sleeping and measuring time
  • Types and Programming Languages Part 4 – Diamond problem

Categories

  • Administration
  • Coding
  • Computer Science
  • Databases
  • Debugging
  • Math

Archive

  • March 2021 (1)
  • February 2021 (4)
  • January 2021 (5)
  • December 2020 (4)
  • November 2020 (4)
  • October 2020 (5)
  • September 2020 (4)
  • August 2020 (5)
  • July 2020 (4)
  • June 2020 (4)
  • May 2020 (5)
  • April 2020 (4)
  • March 2020 (4)
  • February 2020 (5)
  • January 2020 (4)
  • December 2019 (4)
  • November 2019 (5)
  • October 2019 (4)
  • September 2019 (4)
  • August 2019 (5)
  • July 2019 (4)
  • June 2019 (5)
  • May 2019 (4)
  • April 2019 (4)
  • March 2019 (5)
  • February 2019 (5)
  • January 2019 (4)
  • December 2018 (5)
  • November 2018 (4)
  • October 2018 (4)
  • September 2018 (5)
  • August 2018 (4)
  • July 2018 (4)
  • June 2018 (5)
  • May 2018 (4)
  • April 2018 (4)
  • March 2018 (5)
  • February 2018 (4)
  • January 2018 (4)
  • December 2017 (5)
  • November 2017 (4)
  • October 2017 (4)
  • September 2017 (5)
  • August 2017 (4)
  • July 2017 (5)
  • June 2017 (4)
  • May 2017 (4)
  • April 2017 (5)
  • March 2017 (4)
  • February 2017 (4)
  • January 2017 (4)
  • December 2016 (5)
  • November 2016 (4)
  • October 2016 (5)
  • September 2016 (4)
  • August 2016 (4)
  • July 2016 (5)
  • June 2016 (4)
  • May 2016 (4)
  • April 2016 (5)
  • March 2016 (4)
  • February 2016 (4)
  • January 2016 (5)
  • December 2015 (4)
  • November 2015 (4)
  • October 2015 (5)
  • September 2015 (4)
  • August 2015 (3)

RSS Posts

  • Custom memory allocation in C# Part 15 — Allocating object on a stack without unsafe March 6, 2021
  • Custom memory allocation in C# Part 14 — Unsafe code without unsafe keyword February 27, 2021
  • .NET Inside Out Part 26 – Multiple identity inheritance in C# February 20, 2021