Message Ordering from Kernel SCIF APIs

Message Ordering from Kernel SCIF APIs

imagem de Wendy  C.

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 ?






2 posts / 0 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de  Wei W.

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. 

Faça login para deixar um comentário.