What is the difference between SmartSockets being Thread Safe vs. Thread Aware?

What is the difference between SmartSockets being Thread Safe vs. Thread Aware?

book

Article ID: KB0085968

calendar_today

Updated On:

Products Versions
TIBCO SmartSockets -
Not Applicable -

Description

Resolution:
SmartSockets is thread-safe, however, messages are not thread-aware. If a program modifies a message simultaneously in separate threads then it is the program's responsibility to protect the message with a locking mechanism. Generally speaking, if a library is thread-safe then this simply means that multiple threads can execute the same piece of code without worrying about the threads stepping all over each other. However, this doesn't mean that a resource shared across threads (a message in this case) is automatically protected. It is up to the program to provide the necessary synchronization of the shared resource.In SmartSockets we provide synchronization on the connection, but that is all.

Issue/Introduction

What is the difference between SmartSockets being Thread Safe vs. Thread Aware?