I have a method (SendandGet) that sends and receives data from a System.IO.SerialPort.
I have several different areas in my program that call this method at intervals and by the user.
I'm looking for a way to queue the calls to the method so that I can then handle them in synchronized way and make sure that every call to the method is executed. Each call to the Method will either return data or timeout but the code must finish before the next call is made.
I would like to do this on a separate thread. Not having any luck with TPL (Tasks or Task.Factory) but I might not be using it right.
Here is a small example:(CODE)
Produces the following output -
You can verify that this is a multi-threaded application because the Console.Writes for 'Sent batch x to queue' are sometimes printed before
Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…