threadx

Bootloader required for Azure RTOS THREADX?

懵懂的女人 提交于 2020-06-23 08:16:09
问题 I have an existing embedded stand-alone main program and am trying to add Azure RTOS THREADX to it. Does Azure RTOS require a bootloader? Is it bootloader agnostic? 回答1: Azure RTOS THREADX does not require a bootloader itself and is in general bootloader agnostic. A typical use of Azure RTOS THREADX is to be linked and located as part of the application program in a device’s flash memory, where the entry point is tied to the reset vector. However, there are some applications that do require a

thread stack pointer

♀尐吖头ヾ 提交于 2019-12-06 04:43:21
问题 In Linux 2.6.32-32, is there a way to find the following information about a thread programmatically in a pthreads program? I need: run count, stack pointer, stack start/end, stack size, stack usage. Something like ThreadX, I guess, but within a program. Thanks. 回答1: pthread_getattr_np() should give you the pthread attributes of a thread pthread_attr_getstack() returns the stack address and size I don't know what you mean by run count. For the stack pointer of a thread different than your

thread stack pointer

╄→гoц情女王★ 提交于 2019-12-04 10:36:58
In Linux 2.6.32-32, is there a way to find the following information about a thread programmatically in a pthreads program? I need: run count, stack pointer, stack start/end, stack size, stack usage. Something like ThreadX, I guess, but within a program. Thanks. pthread_getattr_np() should give you the pthread attributes of a thread pthread_attr_getstack() returns the stack address and size I don't know what you mean by run count. For the stack pointer of a thread different than your current one you might need to use ptrace . Once you have it, you can use it to do the maths for determining how