VXWorks
Could some one please explain me the difference between WinNT processes and VXWorks tasks ; and the allocation of priority levels to tasks and threads in VXWorks ?
How does the thread scheduling differ between NT and VXWorks ?
[230 byte] By [
rajendra] at [2007-11-17 14:03:24]

# 1 Re: VXWorks
Hi,
I dont think there is any difference between the process in NT and task in VxWorks, but in VxWorks you can specify the type of scheduling(Preemptive or round robin) you want the kernel to use.
When you spawn a task in VxWorks you set its priority but you can change its priority level during its runtime or can make use of priorty inversion/inheritance if need be.
The scheduler in kernel could be scheduled for preemptive or round robin . In case of round robin you can also set the timeslice on system level which would be applicable to all the processes.
If you have any other queries please do let me know.
By the way may I know who you are and where r u from.
Bye and take care
Shyam
# 2 Re: VXWorks
i m working on VxWorks
I am using standard libraries:
#include <stdio.h>
#include <dirent.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
In stat() we pass following arguments to get the scanned node info.
stat((char*)filename, &sbuf)
I just need to know whether the scanned node is a file or directory.
In stat() its done by using <<sbuf.st_mode>>
stat() takes some time as it gets complete information about a file. But i dont need complete info about a file.
Just whether the scanned node is a file or directory.
Please tell me.