PyPy的Python和线程?(Python and Threads with PyPy?)
我在python中有一个使用一些线程的kivy应用程序。 由于全局解释器锁,python无法在不同的Core上运行这些线程,我本来希望尝试使用PyPy ,看看我是否可以让线程在不同的内核中运行得更快,因为PyPy不同并提供无堆栈 (那是什么?:)。
有人有一些信息要分享如何制作一个简单的python程序,它通过模块
threading
启动一些线程,与pypy解释器一起运行,以便它使用这个无堆栈的特征?I have a kivy application in python which uses some threads. As python is not able to run these threads on different Cores due to the Global Interpreter Lock, I would have liked to try to use PyPy for it and see if I can make the threads run faster of different cores since PyPy is different and offers stackless (what ever that is? :).
Does somebody has some information to share on how to make a simple python program, which launches some threads by the module
threading
, running with the pypy interpreter such that it uses this stackless featuer?
原文:
最满意答案
如果您使用的是Storage Client库版本6.0.0,则可以将存储模拟器升级到4.2或更高版本。 它作为Azure SDK 2.7.1 for .NET的一部分提供。
https://azure.microsoft.com/en-us/blog/announcing-the-azure-sdk-2-7-1-for-net/
If you are using Storage Client library version 6.0.0, you can upgrade storage emulator to version 4.2 or above. It is available as part of Azure SDK 2.7.1 for .NET.
https://azure.microsoft.com/en-us/blog/announcing-the-azure-sdk-2-7-1-for-net/
相关问答
更多-
正如你通过研究发现的那样,问题在于名称。 您说您的测试容器被命名为imageads-57905553-8585-4d7c-8270-be9e611eda81 ,但在您的代码中,您使用的是ImageAds-57905553-8585-4d7c-8270-be9e611eda81 。 注意大小写的差异。 如果将您的容器名称切换为全部小写,则它将正常工作。 有关更多信息,请参阅命名和引用容器,Blob和元数据时的容器名称下的#3: 3.容器名称中的所有字母都必须是小写字母。 I actually ended up ...
-
您是否尝试过在Azure门户上手动创建容器? 它对可以给容器的名称有一些限制。 例如:容器名称不能包含大写字母。 如果您请求一个名称无效的容器,将会导致(400)您收到的错误请求。 所以检查你的“containerName”字符串。 Have you tried creating a container manually on azure portal? It has some limitations on what name you can give containers. For example: Co ...
-
400错误表示您的其中一个属性的值有问题。 找出的一个方法是通过Fiddler跟踪请求/响应,并查看发送到Windows Azure Storage的实际数据。 我猜想,通过快速浏览您的代码,您的模型中有一些Date / Time类型属性(OfflineTimestamp,OnlineTimestamp),并观察到在某些情况下,其中一个被初始化为默认值是“ DateTime.MinValue ”。 请注意, 日期/时间类型属性允许的最小值是 Windows Azure中的1月1日,1601(UTC) [ht ...
-
最新的存储模拟器版本为5.2,它支持存储客户端8.3使用的最新服务版本。 你可以在这里获得最新版本: https://go.microsoft.com/fwlink/?LinkId=717179&clcid=0x409 The latest storage emulator version is 5.2, which provides support for the most recent service version used by storage client 8.3. You can get the ...
-
MS Azure - 错误请求400(MS Azure - Bad Request 400)[2023-11-16]
您的客户端EmailAddress属性是什么样的? 它在某些时候变得越来越低 - 你的客户端模型中是否有任何属性? “用户名”和“用户名”都起作用的原因是服务器允许大写和小写的第一个字母。 例如,'emailAddress'应该有效。 What does your client-side EmailAddress property look like? It is getting lowercased at some point -- do you have any attributes on it in ... -
您需要升级到最新版本的存储模拟器。 您可以在“命令行工具”下的Azure下载页面上将最新的Storage Emulator作为独立安装程序(不是SDK的一部分)。 You need to upgrade to the latest version of the Storage Emulator. You can get the latest Storage Emulator as a standalone installer (not part of the SDK) at the Azure Downlo ...
-
要查看命名规则,请查看以下链接: http : //msdn.microsoft.com/en-us/library/windowsazure/dd135715.aspx 。 从这个文档页面: 容器名称必须是有效的DNS名称,符合以下命名规则: 容器名称必须以字母或数字开头,并且只能包含字母,数字和破折号( - )字符。 每个破折号( - )字符必须紧接前面和后面跟着一个字母或数字; 连续的破折号不允许输入 容器名称。 容器名称中的所有字母都必须是小写字母。 容器名称的长度必须为3到63个字符。 关于使用存 ...
-
请更改以下代码行: var destContainer = cloudBlobClient.GetContainerReference(cloudBlobClient.BaseUri + _publishBlobContainer); 至 var destContainer = cloudBlobClient.GetContainerReference(_publishBlobContainer); 这应该解决问题。 Please change the following line of code: v ...
-
azure存储模拟器(表)返回400错误请求或403禁止(azure storage emulator (Table) returns 400 bad request or 403 forbidden)[2023-05-31]
第三个不起作用,因为您没有设置模拟器端点,而是发送到服务帐户devstoreaccount1而不是本地模拟器。 例如,尝试使用TableEndpoint = http://127.0.0.1:10002/devstoreaccount1 。 如有必要,Azure 模拟器文档会提供更多详细信息。 如果您在模拟器上看到README部分,您将看到最新的存储库版本需要min emulator版本4.2。 这也应该提供下载链接。 您获得400 Bad Request,因为您正在使用的库版本使用旧仿真器无法知道的服务版 ... -
如果您使用的是Storage Client库版本6.0.0,则可以将存储模拟器升级到4.2或更高版本。 它作为Azure SDK 2.7.1 for .NET的一部分提供。 https://azure.microsoft.com/en-us/blog/announcing-the-azure-sdk-2-7-1-for-net/ If you are using Storage Client library version 6.0.0, you can upgrade storage emulator to ...