B
B
beduin012014-06-21 20:28:17
ASP.NET
beduin01, 2014-06-21 20:28:17

ASP.NET is it multi-threaded or asynchronous?

I read a lot about PHP and NodeJS. The question arose, what is ASP.NET? Multithreaded or asynchronous? And in general, how correct is it to talk about the server and the language? Or can a language somehow be either this or that?
PHP is multi-threaded right?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex-S, 2014-06-21
@Alex-S

in modern .net, any number of threads can be launched in one script method and, synchronizing, complete their work at the end of the method.
Yes, asp.net is both multi-threaded and asynchronous.

V
Vit, 2014-06-21
@fornit1917

Your question should be applied not to languages, but to servers. nodejs is an asynchronous server. PHP is usually run as mod_php or php-fpm - these are multi-threaded options (more precisely multi-process). But there are also asynchronous servers for php - ReactPHP for example.
In the case of asp.net, you are most likely interested in the IIS server. I am not familiar with it, but in my opinion it is multi-threaded, but it is permissible to do asynchronous operations in each worker thread.

P
Puma Thailand, 2014-06-21
@opium

php single-threaded
in the context of the script, you will not run any many threads

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question