Software Archive
Read-only legacy content
17061 Discussions

Message Ordering from Kernel SCIF APIs

Wendy__C_
Beginner
408 Views

We're working on Kernel Mode applications on MIC. It is not clear from the document whether SCIF send/recv APIs guarantee message ordering; that is: Say .. On host side: two threads send messages via scif_send() in sequential order (controlled by lock)

If the card side has only one recv thread, will scif_recv() received the two messages in the order of sends ? Will the messages interleave ?

Thanks,

Wendy  

 

 

 

0 Kudos
1 Reply
Wei_W_2
Beginner
408 Views

Yes, scif_recv will receive the message in the order of send. Actually, if you set scif_send as blocked send, the thread will be blocked until the message is received by scif_recv, so your next scif_send would be executed only after your first send. 

0 Kudos
Reply