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

  • <legend id='xNrxs'><style id='xNrxs'><dir id='xNrxs'><q id='xNrxs'></q></dir></style></legend>

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

        为进程指定特定的 CPU - python 多处理

        时间:2023-05-26
        <legend id='wx2Gl'><style id='wx2Gl'><dir id='wx2Gl'><q id='wx2Gl'></q></dir></style></legend>
            <bdo id='wx2Gl'></bdo><ul id='wx2Gl'></ul>

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

              <tbody id='wx2Gl'></tbody>

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

                1. 本文介绍了为进程指定特定的 CPU - python 多处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我在多处理设置中使用 Redis 作为生产者/消费者关系的队列.

                  I am using Redis as my queue for a producer/consumer relationship in a multiprocessing setup.

                  我的问题是我的生产者超载了我的消费者,然后窃取了它的 CPU.

                  My problem is that my producers are overloading my consumer then stealing it's CPU.

                  我的问题是,我能否在此设置中将整个处理器分配给特定的功能/进程(即消费者).

                  My question, can I allocate an entire processor to specific function/process (IE: the consumer) in this setup.

                  推荐答案

                  这不是 Python 开箱即用的东西.也有点特定于操作系统.在 Linux 下查看此答案:https://stackoverflow.com/a/9079117/4822566

                  It's not something Python does out of the box. Is also somewhat OS-specific. See this answer on doing under Linux: https://stackoverflow.com/a/9079117/4822566

                  这篇关于为进程指定特定的 CPU - python 多处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么多处理中的新对象具有相同的 id? 下一篇:Python多处理错误:AttributeError:模块'__main__'没

                  相关文章

                  最新文章

                  1. <small id='ubaii'></small><noframes id='ubaii'>

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

                        <bdo id='ubaii'></bdo><ul id='ubaii'></ul>
                    1. <tfoot id='ubaii'></tfoot>