代码改变世界

随笔档案-2011年08月

RTP memory in Vxworks

2011-08-31 10:24 by Jeff, 1182 阅读, 收藏,
摘要: cmd进入Command interpreterc进入C interpreter以下是用cmd命令,打印出rtp memory的情况:有一点关于shared data比较奇怪,我open的时候大小明明设置的是0x9900300,这里显示的是0x9901000.原因应该是和WindRiver的库函数有关.[vxWorks *]# rtp meminfo -l -m 0x5a02010Memory I... 阅读全文

Windriver的项目类型

2011-08-25 14:04 by Jeff, 1025 阅读, 收藏,
摘要: 1. DKMUse Downloadable Kernel Module projects to manage and build modules that willexist in the kernel space.Kernel-mode development is the traditional VxWorks method of development; allthe tasks you... 阅读全文

RTP affinity

2011-08-24 12:59 by Jeff, 649 阅读, 收藏,
摘要: 以下代码证明: RTP affinity inherits from the task that created it.创建一个RTP,代码: #include "taskLib.h"int main(){ while(1){ taskDelay(1); } taskSuspend(taskIdSelf());}创建一个VIP,在usrAppInit.c中调用myroot().myr... 阅读全文

Symmetric multiprocessing (SMP)

2011-08-23 14:21 by Jeff, 1215 阅读, 收藏,
摘要: Symmetric multiprocessing (SMP) is a variant of multiprocessing technology inwhich one instance of an operating system controls all processors, and in whichmemory is shared.===========================... 阅读全文

Shared-memory object ---VxMP

2011-08-22 13:20 by Jeff, 8887 阅读, 收藏,
摘要: VxMP is a VxWorks component that provides shared-memory objects dedicatedto high-speed synchronization and communication between tasks running inseparate instances of VxWorks.=========================... 阅读全文

socket丢数据的一个原因

2011-08-09 15:59 by Jeff, 1994 阅读, 收藏,
摘要: 多任务环境中,某任务从socket接收数据,并传给底层处理. 程序结构如下:while(1){ socket receive; Invoke other module handle the received data;}次任务每收一条数据都发给底层去处理.处理完再收下一条数据.测试结果丢数据,ethereal上看到客户端已经发送数据,但是这个任务只收到部分数据.后来查证,每次收数据,处... 阅读全文