Hello!
Is there a C program equivalent of the script command CheckThread<N>?
Is the size of the .out file proportional to the number of threads a program will occupy? If I have a 150 KB .out file, will it occupy three user threads and have a timing of 360us (90 us for Thread 0, 90 us for Thread 1, 90 us for Thread 2, and 90 us for Thread 3) or will it act as if it only occupies 1 thread and have an execution timing of 180 us? (90 us for Thread 0, 90 us for Thread 1)?
Thread Executions
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2529
- Joined: Mon Dec 04, 2017 1:49 am
Re: Thread Executions
Hi,
HTH
The ThreadActive variable has bits 0-7 for which Threads are active. 1=Active 0=Inactive.Is there a C program equivalent of the script command CheckThread<N>?
Code: Select all
extern volatile int ThreadActive; // one bit for each thread
No. Compile in KMotion.exe and it will report the size.Is the size of the .out file proportional to the number of threads a program will occupy?
If a Thread's memory overflows into another Thread's memory it is still 1 Thread and in that case would still be 90us for Thread 0 and 90us for Thread 1.If I have a 150 KB .out file, will it occupy three user threads and have a timing of 360us (90 us for Thread 0, 90 us for Thread 1, 90 us for Thread 2, and 90 us for Thread 3) or will it act as if it only occupies 1 thread and have an execution timing of 180 us? (90 us for Thread 0, 90 us for Thread 1)?
HTH
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.