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
    • Async With Coroutines and Fibers in C#
    • 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

Tag: PInvoke

Concurrency Part 10 — Reentrant mutex

November 2, 2019January 2, 2021 ~ Leave a comment

This is the tenth 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 have already seen how to implement custom mutex using memory mapped files and CAS operation. It has one drawback — it is not reentrant. … Continue reading Concurrency Part 10 — Reentrant mutex

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

Decreasing pain of stolen focus

August 24, 2019January 2, 2021 ~ Leave a comment

One of the most irritating thing in Windows is no way to prevent an application from stealing focus. There are multiple questions on Stack Overflow regarding the issue, there are rumors that Microsoft wanted to do something but they cannot detect it reliably. There are workarounds like ForegroundLockTimeout but ultimately there is no good solution. … Continue reading Decreasing pain of stolen focus

Custom memory allocation in C# Part 8 — Unsafe list in .NET Core x64

June 23, 2018January 2, 2021 ~ 1 Comment

This is the eighth part of the Custom memory allocation series. For your convenience you can find other parts in the table of contents in Part 1 — Allocating object on a stack Today we are going to revisit an Unsafe list example using .NET Core. Since I use x64 edition, I need to adjust … Continue reading Custom memory allocation in C# Part 8 — Unsafe list in .NET Core x64

Custom memory allocation in C# Part 7 — Stack allocation once again

June 9, 2018January 2, 2021 ~ 1 Comment

This is the seventh part of the Custom memory allocation series. For your convenience you can find other parts in the table of contents in Part 1 — Allocating object on a stack We know how to allocate object on a stack, however, we did this in .NET Framework. Can we do the same in … Continue reading Custom memory allocation in C# Part 7 — Stack allocation once again

Posts navigation

Older posts

Recent Posts

  • ILP Part 62 – Maximally attacking chessboard
  • ILP Part 61 – Sudomino
  • ILP Part 60 – Fencing Match
  • ILP Part 59 – Pętliczek
  • ILP Part 58 – Kantoriiroodo

Categories

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

Archive

  • April 2021 (2)
  • 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

  • ILP Part 62 – Maximally attacking chessboard April 10, 2021
  • ILP Part 61 – Sudomino April 3, 2021
  • ILP Part 60 – Fencing Match March 27, 2021