BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Python programming questtion
- Subject: [Discuss] Python programming questtion
- From: gaf.linux at gmail.com (Jerry Feldman)
- Date: Sat, 4 Jul 2026 16:00:56 -0400
- In-reply-to: <20260704151645.3cdb0fb6.Richard.Pieri@gmail.com>
- References: <CAEvgogHEMxwWHzrtix8CrR1ZcqHJ74AYGsxcT2zbjQMJSjkD_A@mail.gmail.com> <20260704151645.3cdb0fb6.Richard.Pieri@gmail.com>
Thanks Rich. The issue is really paramiko. It is inherently not threadsafe. But, there is a ThreadPoolExecutor module recommended by paramiko. The job I am doing is: Log in to remote host Read a directory of student used IDs Then use getent to get their full names. This is mostly io bound. I'll see where the thread pool executor takes me. Jerry Feldman <gaf.linux at gmail.com> Boston Linux and Unix http://www.blu.org/ On Sat, Jul 4, 2026, 3:17?PM Rich Pieri <richard.pieri at gmail.com> wrote: > https://docs.python.org/3/library/concurrency.html > > "The appropriate choice of tool will depend on the task to be executed > (CPU bound vs IO bound) and preferred style of development (event > driven cooperative multitasking vs preemptive multitasking)." > > On Sat, 4 Jul 2026 14:04:42 -0400 > Jerry Feldman <gaf.linux at gmail.com> wrote: > > > I have a python GTK app that uses paramiko to log into a remote host > > and perform a few tasks that populate a class. These work perfectly > > BUT... I do get a 'python not responding' dialog. > > Before I refactor the code, > > Would I be better off using the threading or multiprocess module. > > -- > \m/ (--) \m/ > _______________________________________________ > Discuss mailing list > Discuss at lists.blu.org > https://lists.blu.org/mailman/listinfo/discuss >
- Follow-Ups:
- [Discuss] Python programming questtion
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Python programming questtion
- References:
- [Discuss] Python programming questtion
- From: gaf.linux at gmail.com (Jerry Feldman)
- [Discuss] Python programming questtion
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Python programming questtion
- Prev by Date: [Discuss] Python programming questtion
- Next by Date: [Discuss] Python programming questtion
- Previous by thread: [Discuss] Python programming questtion
- Next by thread: [Discuss] Python programming questtion
- Index(es):
