I am using VB.NET and want to coordinate two threads. Each thread can write to the serial port, but I need to make sure when this happens that a single thread can complete a series of writes before the other starts (in other words, a complete and consistent block of data is written without being interpersed with data from the other thread. Should be easy using thread communications, but the documentation is pretty fuzzy. Can anyone provide a simple example where threads can mutually block each other to support this kind of communication? There appear to be several ways to do this (synclock on an object, waithandles, etc.), but the ramifications of one ver. another is not apparent. My needs should be pretty simple.

Thanks
Al