Thomas,
You want to in the linux kernel sources.
You will have to recompile the kernel to provide this functionality.
The scheduler as written does not have CPU specific primitives, it is a nice general purpose scheduler
with some NICE specific additions.
The language you will use is gnu C for this.
To use this kernel modification with FPC, you will have to provide a system call so that you can set the value
of the CPU and process id for the scheduler. You may want to provide a system call to retrieve number of CPU's, but
this is probably available from somewher already, like /proc/.
Hope this helps you size up the task.
I may be working on scheduler modification in the new year if you can wait that long. I would then share
my efforts with you.
Mark Diener
Thomas Schatzl wrote 19 lines
Hello all,
I've some (general) questions about Linux and SMP and probably some of
you know some pointers to information (I couldn't find the thing I was
trying to search for ...).
So does someone know whether there is a library or system calls or whatever
which allow assignment of particular threads or processes to a specific
processor on an SMP machine ? Does not matter which language as long as it
can be used with FPC... I'm currently desperately looking at such stuff but
can't find a thing. :(
Thanks in advance,
Thomas
_______________________________________________
fpc-pascal maillist -
http://lists.freepascal.org/mailman/listinfo/fpc-pascal