<i id='R8Sfu'><tr id='R8Sfu'><dt id='R8Sfu'><q id='R8Sfu'><span id='R8Sfu'><b id='R8Sfu'><form id='R8Sfu'><ins id='R8Sfu'></ins><ul id='R8Sfu'></ul><sub id='R8Sfu'></sub></form><legend id='R8Sfu'></legend><bdo id='R8Sfu'><pre id='R8Sfu'><center id='R8Sfu'></center></pre></bdo></b><th id='R8Sfu'></th></span></q></dt></tr></i><div id='R8Sfu'><tfoot id='R8Sfu'></tfoot><dl id='R8Sfu'><fieldset id='R8Sfu'></fieldset></dl></div>
    1. <tfoot id='R8Sfu'></tfoot>

          <bdo id='R8Sfu'></bdo><ul id='R8Sfu'></ul>

        <small id='R8Sfu'></small><noframes id='R8Sfu'>

      1. <legend id='R8Sfu'><style id='R8Sfu'><dir id='R8Sfu'><q id='R8Sfu'></q></dir></style></legend>

        如何在python中将文件描述符从父级传递给子级?

        时间:2023-05-25

          1. <tfoot id='p0jS9'></tfoot>
            <legend id='p0jS9'><style id='p0jS9'><dir id='p0jS9'><q id='p0jS9'></q></dir></style></legend>

              <bdo id='p0jS9'></bdo><ul id='p0jS9'></ul>

            • <small id='p0jS9'></small><noframes id='p0jS9'>

                  <tbody id='p0jS9'></tbody>
                1. <i id='p0jS9'><tr id='p0jS9'><dt id='p0jS9'><q id='p0jS9'><span id='p0jS9'><b id='p0jS9'><form id='p0jS9'><ins id='p0jS9'></ins><ul id='p0jS9'></ul><sub id='p0jS9'></sub></form><legend id='p0jS9'></legend><bdo id='p0jS9'><pre id='p0jS9'><center id='p0jS9'></center></pre></bdo></b><th id='p0jS9'></th></span></q></dt></tr></i><div id='p0jS9'><tfoot id='p0jS9'></tfoot><dl id='p0jS9'><fieldset id='p0jS9'></fieldset></dl></div>
                2. 本文介绍了如何在python中将文件描述符从父级传递给子级?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在使用多处理模块,并使用池来启动多个工作人员.但是在父进程中打开的文件描述符在工作进程中是关闭的.我希望他们开放..!有没有办法传递文件描述符以在父子之间共享?

                  I am using multiprocessing module, and using pools to start multiple workers. But the file descriptors which are opened at the parent process are closed in the worker processes. I want them to be open..! Is there any way to pass file descriptors to be shared across parent and children?

                  推荐答案

                  据我所知,没有一种方法可以在进程之间共享文件描述符.如果存在方法,它很可能是特定于操作系统的.

                  There isn't a way that I know of to share file descriptors between processes. If a way exists, it is most likely OS specific.

                  我的猜测是您需要在另一个级别上共享数据.

                  My guess is that you need to share data on another level.

                  这篇关于如何在python中将文件描述符从父级传递给子级?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:多处理 Queue.get() 挂起 下一篇:为什么 tkinter 不能很好地处理多处理?

                  相关文章

                  最新文章

                    <legend id='0sy9I'><style id='0sy9I'><dir id='0sy9I'><q id='0sy9I'></q></dir></style></legend>
                    • <bdo id='0sy9I'></bdo><ul id='0sy9I'></ul>

                      <tfoot id='0sy9I'></tfoot>
                    1. <small id='0sy9I'></small><noframes id='0sy9I'>

                      <i id='0sy9I'><tr id='0sy9I'><dt id='0sy9I'><q id='0sy9I'><span id='0sy9I'><b id='0sy9I'><form id='0sy9I'><ins id='0sy9I'></ins><ul id='0sy9I'></ul><sub id='0sy9I'></sub></form><legend id='0sy9I'></legend><bdo id='0sy9I'><pre id='0sy9I'><center id='0sy9I'></center></pre></bdo></b><th id='0sy9I'></th></span></q></dt></tr></i><div id='0sy9I'><tfoot id='0sy9I'></tfoot><dl id='0sy9I'><fieldset id='0sy9I'></fieldset></dl></div>