共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 跳转至页