Hi, all!
I think the stub task should be generated with some RPC calls in the
netrpc applications and die out with the exit of the netrpc application,
however I found that is not so. I did an experiment on the "soundmsg"
example in "/showroom/user/netrpc/soundmsg". The result was that the stubs
was generated after the "player" and "speaker" exited and the stubs did not
die out until the rtai modules were removed. This will result in waste of
the system resource. If remove the stubs manually, how can I do it? I tried
the function "rt_rel_stub" to remove(release) the stub , but it cann't.
Test result:
[EMAIL PROTECTED] soundmsg]# ./run3
*** SOUND USING REMOTE INTERTASK MSGes (user) ***
Press <enter> to load modules:
Now start the realtime process <enter>,
Press <enter> when you want to end it.
SPECIFIC RECEIVE DIRECTLY ON REMOTE TASK
SPEAKER TASK RUNNING
PLAYER TASK RUNNING
(TYPE ENTER TO END EVERYTHING)
PLAYER TASK STOPS
SPEAKER TASK STOPS
Done. Press <enter> to remove the modules.
1. After rtai modules was loaded and before "player" and "speaker" were
run, "ps -a" has the following result:
[EMAIL PROTECTED] root]# ps -a
PID TTY TIME CMD
2709 pts/1 00:00:00 run3
2719 pts/1 00:00:00 RTAI_KTHRD_B:0
2720 pts/1 00:00:00 RTAI_KTHRD_M:0
2744 pts/1 00:00:00 insmod
2745 pts/1 00:00:00 insmod
2746 pts/1 00:00:00 PRTSRV
2747 pts/2 00:00:00 ps
2. After "player" and "speaker" were run and before "player" and "speaker"
exited, "ps -a" has the following result:
[EMAIL PROTECTED] root]# ps -a
PID TTY TIME CMD
2709 pts/1 00:00:00 run3
2719 pts/1 00:00:00 RTAI_KTHRD_B:0
2720 pts/1 00:00:00 RTAI_KTHRD_M:0
2744 pts/1 00:00:00 insmod
2745 pts/1 00:00:00 insmod
2746 pts/1 00:00:00 PRTSRV
2748 pts/1 00:00:00 speaker3
2753 pts/1 00:00:00 player
2758 pts/2 00:00:00 ps
3. After "player" and "speaker" exited and before rtai modules was removed,
"ps -a" has the following result:
[EMAIL PROTECTED] root]# ps -a
PID TTY TIME CMD
2709 pts/1 00:00:00 run3
2719 pts/1 00:00:00 RTAI_KTHRD_B:0
2720 pts/1 00:00:00 RTAI_KTHRD_M:0
2744 pts/1 00:00:00 insmod
2745 pts/1 00:00:00 insmod
2746 pts/1 00:00:00 PRTSRV
2756 pts/1 00:00:00 SFTSTB-12 <defunct>
2757 pts/1 00:00:00 SFTSTB-3 <defunct>
2768 pts/2 00:00:00 ps
4. After rtai modules was removed, "ps -a" has the following result:
[EMAIL PROTECTED] root]# ps -a
PID TTY TIME CMD
2784 pts/2 00:00:00 ps
Thanks in advance!
Tannykie
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com