Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
C# 7 and .NET Core 2.0 High Performance

You're reading from  C# 7 and .NET Core 2.0 High Performance

Product type Book
Published in Apr 2018
Publisher
ISBN-13 9781788470049
Pages 300 pages
Edition 1st Edition
Languages
Author (1):
Ovais Mehboob Ahmed Khan Ovais Mehboob Ahmed Khan
Profile icon Ovais Mehboob Ahmed Khan

Table of Contents (11) Chapters

Preface 1. What's New in .NET Core 2 and C# 7? 2. Understanding .NET Core Internals and Measuring Performance 3. Multithreading and Asynchronous Programming in .NET Core 4. Data Structures and Writing Optimized Code in C# 5. Designing Guidelines for .NET Core Application Performance 6. Memory Management Techniques in .NET Core 7. Securing and Implementing Resilience in .NET Core Applications 8. Microservices Architecture 9. Monitoring Application Performance Using Tools 10. Other Books You May Enjoy

Multithreading versus asynchronous programming

Multithreading and asynchronous programming, if properly implemented, improve the performance of an application. Multithreading refers to the practice of executing multiple threads at the same time to execute multiple operations or tasks in parallel. There could be one main thread and several background threads, usually known as worker threads, running in parallel at the same time, executing multiple tasks concurrently, whereas both synchronous and asynchronous operations can run on a single-threaded or a multithreaded environment.

In a single-threaded synchronous operation, there is only one thread that performs all the tasks in a defined sequence, and it executes them one after the other. In a single-threaded asynchronous operation, there is only one thread that executes the tasks, but it allocates a time slice in which to run each...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}