79 questions for “Threading”

Found in 1 field. Select a question to see its full answer.

Information Technology

79 questions in 9 technologies

#QuestionTechnologyTopicLevel
1What is the fundamental difference between concurrency and parallelism, and how does this map to Python's threading versus multiprocessing modules? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Beginner
2How do you create and run a basic thread using the threading module? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Beginner
3How do you protect shared mutable state from race conditions when using multiple threads, using threading.Lock? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Intermediate
4How do you correctly implement a producer-consumer pattern using System.Threading.Channels for asynchronous data pipelines? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
5How would you implement a context manager for managing a lock (like threading.Lock) while ALSO adding a timeout, raising an error if the lock can't be acquired quickly enough? Python › File I/O & Context ManagersPythonFile I/O & Context ManagersAdvanced
6How would you implement a producer-consumer background processing pipeline using System.Threading.Channels alongside a BackgroundService? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
7How do the threading models of Redis and Memcached differ, and what performance implications does this have? Redis › Redis vs MemcachedRedisRedis vs MemcachedIntermediate
8What are the differences between Redis's threading model in older versions versus improvements introduced in more recent versions for handling input and output operations? Redis › Redis Architecture & InstallationRedisRedis Architecture & InstallationAdvanced
9What is the UI thread and why must UI updates happen on it? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingBeginner
10What is the UI thread and why must UI updates happen on it? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingBeginner