共1条
1/1 1 跳转至页
Vxworks中printf()和logMsg()的区别(老站转)

shenmo
助理工程师
来自:
发表总数:6
查看 短消息 电子邮件
--------------------------------------------------------------------------------
请问在Vxworks系统中,printf()和logMsg()的本质区别?
为什么在调试状态下printf()有可能引起阻塞,而logMsg不会呢
谢谢
--------------------------------------------------------------------------------
编辑 发表於:2002-02-25 - 17:20:39 IP: 61.170.*.*
frankzhou
助理工程师
来自:
发表总数:1
查看 短消息 电子邮件
--------------------------------------------------------------------------------
printf( ) - write a formatted string to the standard output stream (ANSI).
logMsg( ) does not actually perform the output directly to the logging streams, but instead queues the message to the logging task, logMsg( ) can be called from interrupt service routines.
--------------------------------
Frank
--------------------------------------------------------------------------------
编辑 发表於:2002-02-25 - 22:47:08 IP: 202.102.*.*
zhanghoxi
助理工程师
来自:
发表总数:2
查看 短消息 电子邮件
--------------------------------------------------------------------------------
printf()是将信息输出到标准输出设备中,如果此时设备正在工作,那么就会发生阻塞.
而logMsg()是使用消息队列的方式,它将信息地址发送到队列,由专门的任务将信息打印出来.
关键词: Vxworks printf logMsg 区别
共1条
1/1 1 跳转至页
回复
打赏帖 | |
---|---|
汽车+汽车地线之间连接处理被打赏20分 | |
【Zephyr】使用Zephyr外设初始化过程解析被打赏30分 | |
【S32K146】S32DS watchdog 配置使用被打赏20分 | |
【Zephyr】使用 IAR 调试 Zephyr 镜像被打赏20分 | |
赚取电动螺丝刀+电源电路理论知识分享1被打赏5分 | |
我想要一部加热台+分享常见运算放大器电路的应用被打赏5分 | |
【Zephyr】MCXN947 Zephyr 开发入门适配shell被打赏20分 | |
我想要一部加热台+常见的MOS管驱动电路被打赏5分 | |
【我要开发板】6.联合MATLAB记录数据被打赏50分 | |
【换取手持数字示波器】MicrochipMPLABHarmony框架下串口调试printf输出记录被打赏29分 |