This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

about timeslice and same priority thread switch.


Hi, after finished building the ecos1.3.1 on Redhat linux6.1(target is pc x86),I use gdb stub and the example twothreads.c to test.
From the document and the code of kernel,I think the threads of same priority should switch by timeslice.But after comment the sentence in twothreads.c as followed:
          cyg_thread_delay(200);
I find no switch.Who can tell me why? I think the switch of thread invoked by dsr of real time clock interrupt.Is that right?
  Thanks a lot.
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]