Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #39110

Re: boolean while loops "how to stop" and "make room for textout to textarea"

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.javascript
Subject Re: boolean while loops "how to stop" and "make room for textout to textarea"
Date Tue, 3 Nov 2020 18:34:53 +0100
Lines 34
Message-ID <i0diltFr6jlU1@mid.individual.net> (permalink)
References <6d2d33cc-9b19-469c-a25c-d8d2f862f0aco@googlegroups.com> <i05kv9F6nc1U2@mid.individual.net> <c803369b-8162-4ea3-811f-c3f4778ba4aeo@googlegroups.com> <i05mjrF72lpU1@mid.individual.net> <df4ee5e0-173e-40d1-867e-35bfb991f549o@googlegroups.com> <3r7tpfhth4n7toe3figrnvl9jr3ottf580@4ax.com> <i07pvdFkcmpU2@mid.individual.net> <acstpf9fi6k9r7p8itfecka9uuqpr503th@4ax.com> <i08issFpi7mU1@mid.individual.net> <nnn0qf91haoinukitb6j833tfbu9546261@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace individual.net rbnu/E7bKqzCPl8uhQ8iugwXuPFwTcS0KhHQ5cJ6KuLrpARVIw
Cancel-Lock sha1:WJcw3UtKPxhcZGATb/2cNdv378o=
In-Reply-To <nnn0qf91haoinukitb6j833tfbu9546261@4ax.com>
Xref csiph.com comp.lang.javascript:39110

Show key headers only | View raw


John G Harris:

> On Sun, 1 Nov 2020 21:07:57 +0100, Arno Welzel <usenet@arnowelzel.de>
> wrote:
> 
>   <snip>
>> Again: threads in software have nothing to do with CPU cores. Even a
>> single core single threaded CPU you run multithreaded software. The only
>> difference is the lower performance due to the context switches
>> neccessary for the CPU to handle different threads and the fact that
>> multiple cores can run more multiple threads at the same time.
> 
> Are you saying that every operating system that runs web browsers
> guarantees to do time-slicing of threads if it can't do any better?

No, that is not what I am saying.

I said, that multiple cores are not a requirement to run multithreaded
software.

> That is, a forever loop is guaranteed to be paused from time to time
> without that being requested by the thread code.

No, a forever loop will block the current thread and a JavaScript
executes a script in the browser only in one single thread.

However other threads or processes may still run fine as long as the OS
uses preemptive multitasking. This already worked fine in the days of
the 68000 and Atari ST with MiNT or MagiC instead of TOS.


-- 
Arno Welzel
https://arnowelzel.de

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 03:44 -0700
  Re: boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 04:20 -0700
    Re: boolean while loops "how to stop" and  "make room for textout to textarea" Julio Di Egidio <julio@diegidio.name> - 2020-10-31 06:07 -0700
      Re: boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 09:41 -0700
      Re: boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 09:45 -0700
      Re: boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 09:48 -0700
        Re: boolean while loops "how to stop" and  "make room for textout to textarea" Julio Di Egidio <julio@diegidio.name> - 2020-10-31 10:10 -0700
          Re: boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 10:42 -0700
      Re: boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 10:05 -0700
        Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-10-31 18:49 +0100
          Re: boolean while loops "how to stop" and "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 11:07 -0700
            Re: boolean while loops "how to stop" and "make room for textout to textarea" John G Harris <niam@jghnorth.org.uk.invalid> - 2020-11-01 11:39 +0000
            Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-01 13:52 +0100
      Re: boolean while loops "how to stop" and  "make room for textout to textarea" Julio Di Egidio <julio@diegidio.name> - 2020-11-01 21:57 -0800
        Re: boolean while loops "how to stop" and  "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-11-01 23:44 -0800
  Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-10-31 18:24 +0100
    Re: boolean while loops "how to stop" and "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 10:44 -0700
      Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-10-31 18:52 +0100
        Re: boolean while loops "how to stop" and "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-10-31 11:14 -0700
          Re: boolean while loops "how to stop" and "make room for textout to textarea" John G Harris <niam@jghnorth.org.uk.invalid> - 2020-11-01 11:45 +0000
            Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-01 14:02 +0100
              Re: boolean while loops "how to stop" and "make room for textout to textarea" John G Harris <niam@jghnorth.org.uk.invalid> - 2020-11-01 17:38 +0000
                Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-01 21:07 +0100
                Re: boolean while loops "how to stop" and "make room for textout to textarea" John G Harris <niam@jghnorth.org.uk.invalid> - 2020-11-02 19:36 +0000
                Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-03 18:34 +0100
                Re: boolean while loops "how to stop" and "make room for textout to textarea" Julio Di Egidio <julio@diegidio.name> - 2020-11-03 11:48 -0800
                Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-04 15:17 +0100
                Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-04 15:18 +0100
                Re: boolean while loops "how to stop" and "make room for textout to textarea" Julio Di Egidio <julio@diegidio.name> - 2020-11-04 12:52 -0800
                Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-05 16:12 +0100
          Re: boolean while loops "how to stop" and "make room for textout to textarea" Arno Welzel <usenet@arnowelzel.de> - 2020-11-01 14:02 +0100
  Re: boolean while loops "how to stop" and "make room for textout to textarea" "sc...@sauyet.com" <scott@sauyet.com> - 2020-11-03 13:27 -0800
    Re: boolean while loops "how to stop" and "make room for textout to textarea" Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-11-03 14:08 -0800
      Re: boolean while loops "how to stop" and "make room for textout to textarea" Scott Sauyet <scott.sauyet@gmail.com> - 2020-11-03 17:28 -0800

csiph-web