Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Best option between Task, Thread, Multi-Threading, Parallel, Async/await for my project

As the title says, I’m searching for the most efficient option to use for my program.

Basically my program is doing many I/O tasks ( Opening files, reading them, searching for 4 specific bytes, closing the files )

I have built my program using the normal synchronous method but I feel like the program can work much faster using some of the method listed on the title, which one would be the fastest method to achieve that goal ?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

PS : I’m using it on .NET framework instead of .NET core, so please advice me without forgeting that, thanks.

PS2 : I don’t want to use any Nuget package too, only the .net framework itself

>Solution :

Just use Task combined with async/await.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading