Concurrent writes in multi-threaded program

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
ChololateIT
Posts: 8
Joined: Mon 13. Nov 2017, 15:42

Concurrent writes in multi-threaded program

Post by ChololateIT » Mon 13. Nov 2017, 15:48

Hi,

we have a multi-threaded C# .NET software using the PCAN Basic. In addition to the already implemented communication we need to send a broadcast-message periodically.

Can we just send the message from a concurrent thread using the library so that 2 threads are writing at the same time?

Thanks and best regards,
Daniel

K.Wagner
Software Development
Software Development
Posts: 852
Joined: Wed 22. Sep 2010, 13:36

Re: Concurrent writes in multi-threaded program

Post by K.Wagner » Tue 14. Nov 2017, 08:44

Hello,

The PCAN-Basic DLL is thread-safe, so yes, you can do that.
Best regards,
Keneth

ChololateIT
Posts: 8
Joined: Mon 13. Nov 2017, 15:42

Re: Concurrent writes in multi-threaded program

Post by ChololateIT » Tue 14. Nov 2017, 11:34

Hi Keneth,

many thanks for your prompt reply. That's very helpful

Best regards,
Daniel

Post Reply