In very old versions of the Linux kernel (2.4.0 was when the change happened), threads would have their own pid because threads are implemented as processes...
Although I am guessing that is not what is being referred to here. > On Jul 18, 2019, at 16:51, Michael Merickel <[email protected]> wrote: > > processes != threads, it looks like you're thinking that waitress is using > processes based on your suggestion that you think os.getpid() should return > something different, or that you can't see them being started. > > - Michael > > On Thu, Jul 18, 2019 at 2:54 PM Philip May <[email protected] > <mailto:[email protected]>> wrote: > In the waitress documentation it is said that waitress starts 4 threads to > handle the requests. When I start a waitress server to serve a flask rest API > I can not see 4 threads being started (MacOS). Also when I output the ID of > the threads (os.getpid()) I always get the same ID. What can be the reason > here? > Thanks > Philip > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/a98dff6f-a3bb-48e3-a19f-7723ce729fb7%40googlegroups.com > > <https://groups.google.com/d/msgid/pylons-discuss/a98dff6f-a3bb-48e3-a19f-7723ce729fb7%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > > - Michael > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwF%2BBpgTcJeUEAqsv4S1txuocys%3DL%2Bj8qarWXNg9VXXrmw%40mail.gmail.com > > <https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwF%2BBpgTcJeUEAqsv4S1txuocys%3DL%2Bj8qarWXNg9VXXrmw%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/DB0D91B1-D2F2-4B04-A8FF-3BB9A3AB6EDA%400x58.com. For more options, visit https://groups.google.com/d/optout.
