Thread question
-
I'm creating three to four socket client threads. Each one connecting to a different socket server. At the creation of my threads I'm passing a pointer to a struct. As each thread accesses this struct, will they see everything that the other threads see or will the struct be set in it own memory slot and only see data for that thread? Thanks Tom Wright tawright915@yahoo.com
-
I'm creating three to four socket client threads. Each one connecting to a different socket server. At the creation of my threads I'm passing a pointer to a struct. As each thread accesses this struct, will they see everything that the other threads see or will the struct be set in it own memory slot and only see data for that thread? Thanks Tom Wright tawright915@yahoo.com
All threads will see the same struct.