comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: aws vs ruby rails or php? how much faster?
Date: Tue, 23 Apr 2013 13:30:46 +0200
Date: 2013-04-23T13:30:46+02:00	[thread overview]
Message-ID: <op.wvzrlknsule2fv@cardamome> (raw)
In-Reply-To: 1bjhu6xj0sh4e.1u1r23nzr3zrh$.dlg@40tude.net

Le Tue, 23 Apr 2013 12:08:15 +0200, Dmitry A. Kazakov  
<mailbox@dmitry-kazakov.de> a écrit:

> On Tue, 23 Apr 2013 09:10:39 +0200, Yannick Duchêne (Hibou57) wrote:
>
>> Asynchronous I/O can be achieved with Ada too, and that does not implies
>> tasking, just wrapping what the OS provides for that.
>
> Oh, it does. I don't know what you guys are talking about, but  
> asynchronous
> I/O is intimately related to tasking.

Yes it is, but as you said, it save tasks. The application doing  
asynchronous I/O, does not even need to run multiple tasks, just only one  
which is its own task, as the second may be required task can be provided  
by the OS (and may be just interrupts, depending on the kind of I/O). When  
I said “does not implies tasking”, I wanted to underline the same as you  
did, that it does not cost tasks.

> If you have tasks you normally don't need asynchronous I/O, you do it in  
> a
> blocking way.
>
> If you have one task or less tasks than I/O requests pending, you do I/O
> asynchronously.
>
> With many simultaneous requests you should go asynchronous because the
> number of tasks is limited. An OS can handle far less simultaneous tasks
> than simultaneous I/O requests/channels.
>
> For either HD or sockets you could do I/O synchronously (blocking) or
> asynchronously (non-blocking).
>


-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2013-04-23 11:30 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-21  9:02 aws vs ruby rails or php? how much faster? johannes falcone
2013-04-21 21:27 ` Shark8
2013-04-22  7:22 ` Jacob Sparre Andersen
2013-04-22 19:35   ` johannes falcone
2013-04-22 20:26     ` Shark8
2013-04-22 20:53       ` johannes falcone
2013-04-22 20:04   ` johannes falcone
2013-04-23  7:42     ` Maciej Sobczak
2013-04-23  7:53       ` Thomas Løcke
2013-04-22 21:17   ` Yannick Duchêne (Hibou57)
2013-04-23  6:18     ` Thomas Løcke
2013-04-23  6:45       ` johannes falcone
2013-04-23  6:55         ` Thomas Løcke
2013-04-23  9:57           ` Dmitry A. Kazakov
2013-04-23  7:10       ` Yannick Duchêne (Hibou57)
2013-04-23  7:45         ` Thomas Løcke
2013-04-23  7:51           ` Yannick Duchêne (Hibou57)
2013-04-23 10:08         ` Dmitry A. Kazakov
2013-04-23 11:30           ` Yannick Duchêne (Hibou57) [this message]
2013-05-02 21:13             ` Randy Brukardt
2013-05-03  0:13               ` Shark8
2013-05-03 22:41                 ` Randy Brukardt
2013-05-03  1:02               ` Yannick Duchêne (Hibou57)
2013-05-03 22:48                 ` Randy Brukardt
2013-05-03  7:09               ` Dmitry A. Kazakov
2013-05-03  7:11                 ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox