2825 views|4 replies

693

Posts

7

Resources
The OP
 

Use of Linux semaphores - code testing [Copy link]

 
This post is from Innovation Lab

Latest reply

This is interesting. Many multi-core CPUs now have hardware semaphores. The lower the level, the more universal it is.   Details Published on 2021-11-3 23:14
 
 

6587

Posts

0

Resources
2
 

Thank you for sharing the code test of using Linux semaphore

This post is from Innovation Lab
 
 
 

51

Posts

0

Resources
3
 

Thanks for sharing. Simple and clear. I have a small question

memcpy(&buf,&recv_buf,sizeof(buf));

memset(&recv_buf,0,sizeof(buf));

Here sizeof(buf), I think it would be more appropriate to change it to sizeof(recv_buf)

This post is from Innovation Lab

Comments

Yes, that's right.  Details Published on 2021-11-3 21:13
 
 
 

693

Posts

7

Resources
4
 
leo2002zhang posted on 2021-10-30 11:17 Thank you for sharing. Simple and clear. There is a small problem memcpy(&buf,&recv_buf,sizeof(buf)); memset(&recv_buf,0,si ...

Yes, that's right.

This post is from Innovation Lab
 
 
 

7452

Posts

2

Resources
5
 

This is interesting. Many multi-core CPUs now have hardware semaphores. The lower the level, the more universal it is.

This post is from Innovation Lab
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list