'write python "pre-threaded" server client program'
It wrote something quick enough, except it was a
plain simple threaded server, not PRE-threaded.
Pre-threaded creates/manages a 'bank' of threads at
the start so they don't have to be created one at
a time on demand - quicker, it's the highest-
performing kind of server.
'write python "pre-threaded" "non-blocking" server client program'
It created a non-blocking server, but NOT threaded or pre-threaded.
Seems AI doesn't always "get it"ÿ :-)
My naive solution would be to avoid threading, use IO with
callbacks, or use a handful of long-lived threads, like the "worker thread"/"gui thread" pattern.
On 1/31/26 03:00, c186282 wrote:
'write python "pre-threaded" server client program'
It wrote something quick enough, except it was a
plain simple threaded server, not PRE-threaded.
Pre-threaded creates/manages a 'bank' of threads at
the start so they don't have to be created one at
a time on demand - quicker, it's the highest-
performing kind of server.
'write python "pre-threaded" "non-blocking" server client program'
As a non AI, I wouldn't have known what pre-threaded meant. I would have thought what you describe was called using a thread pool. The AI may
have decided the overall performance hit of creating new threads was low
and not worth the complexity of a thread pool, or it may be the
threading library/OS is effectively doing a thread pool behind the scenes.
My naive solution would be to avoid threading, use IO with callbacks, or
use a handful of long-lived threads, like the "worker thread"/"gui
thread" pattern.
It created a non-blocking server, but NOT threaded or pre-threaded.
Seems AI doesn't always "get it"ÿ :-)
Perhaps you need to have more of a conversation with the AI.
On Sun, 1 Feb 2026 10:09:08 +0000, Pancho wrote:
My naive solution would be to avoid threading, use IO with
callbacks, or use a handful of long-lived threads, like the "worker
thread"/"gui thread" pattern.
Coroutines (in the ?stackless? form) are making a bit of a comeback at
the moment. You see these ?async/await? constructs appearing in
languages like JavaScript and Python.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 20:50:42 |
| Calls: | 117 |
| Calls today: | 117 |
| Files: | 367 |
| D/L today: |
559 files (257M bytes) |
| Messages: | 70,875 |
| Posted today: | 26 |