Hello, im want to run a Soft-SPS under RTLinux and have a problem getting it running on a pc 104 with a 486DX Cyrix cpu (2.2.18kernel rt3.1) Everything works fine with a Pentium cpu. But on the 486 board running the attatched realtimethread, a slightly modified hello.c with a 1ms period, doing nearly nothing but getting scheduled every millisecond, it is no longer possible to have a (non realtime) serial communication with the board because a lot of checksum errors and bytes lost. I cannot imagine this beeing a hardware limit so what can be the problem here? What minimum realtimethread period is possible under RTLinux?
Thanks in advance Dieter Schroeder My system-killer module: #include <rtl.h> #include <time.h> #include <pthread.h> pthread_t thread; unsigned int i; void * start_routine(void *arg) { struct sched_param p; p . sched_priority = 1; pthread_setschedparam (pthread_self(), SCHED_FIFO, &p); pthread_make_periodic_np (pthread_self(), gethrtime(), 1000000); while (1) { pthread_wait_np (); i=i+1; } return 0; } int init_module(void) { return pthread_create (&thread, NULL, start_routine, 0); } void cleanup_module(void) { rtl_printf("...bye...done it: %d\n", i); pthread_delete_np (thread); } _______________________________________________ Rtl mailing list [EMAIL PROTECTED] http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl