Click to See Complete Forum and Search --> : VXWorks


rajendra
February 23rd, 2000, 06:20 AM
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 ?

shyam_shiv
July 27th, 2001, 07:17 AM
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

mrec123.ashok
September 4th, 2007, 03:45 AM
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.

Siddhartha
September 4th, 2007, 04:59 AM
[ redirected ]

Regards,
Siddhartha