JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • The Shared Resources Problem

    C# SELF
    56 level,0 lecture
    In this lecture we cover what shared resources are in multithreaded code, how a race condition manifests, why the operation counter ++ is not atomic, why shared collections are dangerous, how to spot hidden bugs and which atomic operations will help later on. With examples, tables and practical tips.
    Open
  • Locks: lock and the Monitor class

    C# SELF
    56 level,1 lecture
    We break down why locks are needed in multithreaded C# code: what a critical section is, how to safely use the lock keyword, how Monitor works under the hood, when to use TryEnter, and the mistakes developers most often make. With examples, a diagram, and practical recommendations.
    Open
  • Mutexes for synchronization: Mutex

    C# SELF
    56 level,2 lecture
    In this lecture you'll figure out how a mutex differs from lock ( Monitor), when you actually need it, how to use it to synchronize access to resources between different processes, and how to avoid common mistakes. You'll get to know named mutexes, the "single instance application" pattern, the methods WaitOne() and ReleaseMutex(), timeouts and the states of Mutex.
    Open
  • Semaphores: Semaphore and SemaphoreSlim

    C# SELF
    56 level,3 lecture
    In this lecture we'll go over how to limit parallelism using semaphores in .NET: what's the difference between Semaphore and SemaphoreSlim, when to use which, how to correctly call Wait()/ WaitAsync() and Release(), and what mistakes are made most often. Everything explained with simple analogies, practical examples and tips for multithreaded and asynchronous code.
    Open
  • Optimizations with ReaderWriterLockSlim

    C# SELF
    56 level,4 lecture
    When the usual lock is no longer enough: we break down how ReaderWriterLockSlim lets you scale parallel reads when writes are rare. We'll look at lock modes (Read/Write/Upgradeable), thread compatibility, usage patterns, a practical example with a client directory, and pitfalls and common mistakes.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy