Skip to content

Random IT Utensils

IT, operating systems, maths, and more.

  • Applied Integer Linear Programming
  • .NET Internals Cookbook
  • Bio
  • Series and interesting posts
  • Talks, Papers, Workshops
    • Async Biggest C# Mistake
    • Async With Coroutines and Fibers in C#
    • Basics Designs and How We Got Them Wrong
    • Bridging the World Together
    • Connect remotely like a pro!
    • 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
    • Locks are tricky
    • Manual Memory Management
    • MOV, async, DSL – are they connected?
    • Ordering the Chaos
    • Public Speaking
    • Seeing Behind the Scenes with Low-Level Tooling for Hardcore Debugging
    • Testing at Scale
    • Understanding async machinery down to a single detail
    • Understanding Windows and .NET

Author: afish

Concurrency Part 9 — Semaphores with custom locks

October 26, 2019January 2, 2021 ~ afish ~ 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 ~ afish ~ 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 ~ afish ~ 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 ~ afish ~ 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

Caching result of any function in C++

September 28, 2019July 22, 2019 ~ afish ~ Leave a comment

Imagine that you are writing a top-down dynamic algorithm. You already represented your dependencies as recursive functions and now you need to figure out how to decrease the memory usage and calculate things in correct order. On the other hand, you can just apply brute force approach and cache results. How to write caching to … Continue reading Caching result of any function in C++

Posts navigation

Older posts
Newer posts

Recent Posts

  • Async Wandering Part 15 — How async in C# tricks you and how to order async continuations
  • RPA Part 1 — Sharing Word/Excel between objects in Blue Prism
  • Pitless Pit Part 1 — Furmanek Test for consciousness
  • Bit Twiddling Part 6 — Stop RDP from detaching GUI when the client disconnects
  • Bit Twiddling Part 5 — Fixing audio latency in mstsc.exe (RDP)

Categories

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

Archive

  • November 2024 (1)
  • September 2024 (2)
  • June 2024 (1)
  • May 2024 (4)
  • April 2024 (1)
  • March 2024 (3)
  • February 2024 (2)
  • December 2023 (2)
  • February 2023 (4)
  • January 2023 (4)
  • December 2022 (5)
  • November 2022 (4)
  • October 2022 (5)
  • September 2022 (4)
  • August 2022 (4)
  • July 2022 (5)
  • June 2022 (4)
  • May 2022 (4)
  • April 2022 (5)
  • March 2022 (4)
  • February 2022 (4)
  • January 2022 (5)
  • December 2021 (4)
  • November 2021 (4)
  • October 2021 (5)
  • September 2021 (4)
  • August 2021 (4)
  • July 2021 (5)
  • June 2021 (4)
  • May 2021 (5)
  • April 2021 (4)
  • March 2021 (4)
  • 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