Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-06 Thread Henry Rich
Am I missing something?  You have to give me enough to reproduce the problem from scratch. I don't have My_* It is not clear what sentence causes the problem, or what the expected result is. I find it a little odd that you have created threads in threadpools 2 and 3 but you are starting

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-06 Thread Ak O
load 'My_tools' {{0 T. 2}}^:3'' {{0 T. 3}}^:3'' My_tabulation ; (My_u t. (<'worker';1)"1 My_y) timespacex 3.9 5.0e7 NB. (no t.'') Runs correctly. 1.1 3.3e7 NB. (With t.'') Runs once, session dies Ak On Fri., Jan. 6, 2023, 08:10 Henry Rich, wrote: > Tell me exactly what you did

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-06 Thread Henry Rich
Tell me exactly what you did so I can reproduce it. Henry Rich On 1/6/2023 2:22 AM, Ak O wrote: This form executes correctly once. On the second run the whole session crashes. JVERSION Engine: j904/j64/windows Beta-i: commercial/2022-12-13T15:22:35 Library: 9.04.07 Qt IDE: 2.0.3/6.2.4(6.2.4)

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-05 Thread Ak O
This form executes correctly once. On the second run the whole session crashes. JVERSION Engine: j904/j64/windows Beta-i: commercial/2022-12-13T15:22:35 Library: 9.04.07 Qt IDE: 2.0.3/6.2.4(6.2.4) Platform: Win 64 Installer: J904 install InstallPath: c:/j904 Contact: www.jsoftware.com Ak On

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-05 Thread Henry Rich
Each execution of (u t. '') creates a task. The task is added to a list of tasks for its threadpool.  When a thread in the threadpool becomes available, it executes the task. That's all there is to it. Execution starts immediately.  When you create a task, all the waiting tasks in the

[Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-05 Thread Ak O
On Tue Dec 20 17:52:26 UTC 2022 You suggested, ... or, if the blockverbs are the same, you could use pyx012 =. blockverb t. ''"0 block0args;block1args;block2args... I think is similar to what you suggest here. Can explain how the execution is distributed? When is the execution

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-05 Thread Henry Rich
You don't need multiple threadpools, or a work_list.  Just have something like tabulation_task@>/ x (?@[ A. i.@]) t. ''"0 y Henry Rich On 1/5/2023 6:38 PM, Ak O wrote: Is this the correct way to consider scheduling? Is there a better way to structure the distribution of this execution? Ak

[Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-05 Thread Ak O
Is this the correct way to consider scheduling? Is there a better way to structure the distribution of this execution? Ak NB. Simulated long running tasks, of variable execution length. ] wrk_prcs =: ([: < (1 ? [) A. ([: i. ]))"0 0 ] x=. 90 31 235 77 83 99 17 62 122 23 ] y=.

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-05 Thread Henry Rich
You can't.  You can delete only the most-recently-created thread.  This is a deficiency but we decided to wait on fixing it until there is a demonstrated need. Henry Rich On 1/4/2023 8:32 PM, Ak O wrote: In a case where, {{0 T. 2}}'' {{0 T. 4}}'' {{0 T. 7}}'' How do I spin

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-05 Thread Ak O
NB. Simulated long running tasks, of variable execution length. ] wrk_prcs =: ([: < (1 ? [) A. ([: i. ]))"0 0 ] x=. 90 31 235 77 83 99 17 62 122 23 ] y=. 12 4 _17 8 5 _8 9 6 15 _4 NB. The solution pyx look like this: (x wrk_prcs y) ] notional_work_list =: ,.<;._1

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-04 Thread Raul Miller
It's also worth noting that threads do not spin down immediately -- they only spin down when they're idle. And, as you have noted it's basically a stack of threads. So what you'd have to do is spin down as many threads as necessary to eliminate the thread you wish to eliminate and then spin back

[Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-04 Thread Ak O
In a case where, {{0 T. 2}}'' {{0 T. 4}}'' {{0 T. 7}}'' How do I spin down the thread in pool number 4? I think operation, {{55 T. ''}} spins down only the most recently created thread. Thank you Henry. Ak On Wed., Jan. 4, 2023, 16:29 Henry Rich, wrote: > Yes, that's

Re: [Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-04 Thread Henry Rich
Yes, that's right. Henry Rich On 1/4/2023 6:11 PM, Ak O wrote: Happy New Year, I hope you are all well. I am still struggling, please continue to have patience with me. Where, {{0 T. ''}}'' creates a new thread. Does this, {{0 T. 7}}'' create a new thread in pool number 7? Or

[Jprogramming] Thread Primitives -> Configuration 0 T.'' (T.)

2023-01-04 Thread Ak O
Happy New Year, I hope you are all well. I am still struggling, please continue to have patience with me. Where, {{0 T. ''}}'' creates a new thread. Does this, {{0 T. 7}}'' create a new thread in pool number 7? Or how is this function treated? Thank you, Ak