如何在 Q 中识别 peach 函数中的 thread-id

how can I identify the thread-id in peach function in Q

有没有办法在 peach 中执行函数时识别 threadId(或其他一些唯一标识符)?这对调试很有用。

Aaron Davies wrote a simple shared lib around the gettid call in linux, which provides the current thread id. The code and example usage is available in the contributed code section of code.kx.com (see here)

如果您在 windows 上 运行,应该直接修改以与 GetCurrentThreadId

一起使用