Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/tgoop/post.php on line 84
Linuxor ?@Linuxor P.2959
LINUXOR Telegram 2959
فرض کنید می‌خواید برنامه‌ای بنویسید که هزاران درخواست به یک API خارجی ارسال کنه و منتظر پاسخ بمونه. از نظر کارایی و مدیریت منابع، کدوم روش مناسب‌تره؟
Anonymous Quiz
استفاده از Multi-threading چون هر درخواست روی یه ترد اجرا می‌شه و CPU رو کامل درگیر می‌کنه.
استفاده از async/await چون بیشتر زمان در انتظار پاسخ شبکه می‌گذره و نیاز به اشغال کامل CPU نیست.
استفاده از Multi-processing چون هر درخواست توی یه پراسس اجرا می‌شه و دیگه بالا تر از پراسس که نداریم
استفاده از یه حلقه مستقیم Synchronous چون هم‌زمانی ضرورتی نداره و همزمانی بدتر باعث کندی ‌می‌شه
2,121 answered



tgoop.com/Linuxor/2959
Create:
Last Update:

BY Linuxor ?


Share with your friend now:
tgoop.com/Linuxor/2959

View MORE
Open in Telegram


Telegram News

Date: |

In the next window, choose the type of your channel. If you want your channel to be public, you need to develop a link for it. In the screenshot below, it’s ”/catmarketing.” If your selected link is unavailable, you’ll need to suggest another option. Telegram Android app: Open the chats list, click the menu icon and select “New Channel.” Image: Telegram. It’s easy to create a Telegram channel via desktop app or mobile app (for Android and iOS): Telegram desktop app: In the upper left corner, click the Menu icon (the one with three lines). Select “New Channel” from the drop-down menu.
from us


Telegram Linuxor ?
FROM American