Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: polyForth multitasker question Date: Sat, 15 Apr 2017 17:27:23 -0700 Organization: A noiseless patient Spider Lines: 9 Message-ID: <87bmrxfb84.fsf@nightsong.com> References: <8737dcixu5.fsf@nightsong.com> <87vaq7hg4l.fsf@nightsong.com> <6_ydnXUzTNeS523FnZ2dnUU7-THNnZ2d@supernews.com> <2017Apr14.095322@mips.complang.tuwien.ac.at> <2017Apr14.161245@mips.complang.tuwien.ac.at> <771beb26-4b3d-4a4d-9251-373b2ff47b70@googlegroups.com> <2017Apr15.104628@mips.complang.tuwien.ac.at> <9cc8fad9-67b9-49a8-a1f4-8e45fb7ca63c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="104886ca34cb06a03d33248390dbe2ae"; logging-data="6599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qu2Lnnq8Zh4QwSax3RPuQ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:57WO8QhcfNNk8OhRGxYQKXrTOp4= sha1:jKzT0dbYRXPSsVZpTr6I7sL7skE= Xref: csiph.com comp.lang.forth:57403 pahihu writes: > Do you have any numbers comparing Pthread vs. old tasker.fs based > multi-tasking ? I remember being able to task switch around 20k times/second on an old small 300mhz ARM board. The board had 64mb of ram and I ran a Python program on it that used around 20 threads and it wasn't a problem. On a full sized x86 server I've run 1000s of threads and that works too, but millions probably wouldn't.