i following the facenet in timesler , there is a line
workers = 0 if os.name == ‘nt’ else 8
what
os.name ==‘nt’
meaning
i following the facenet in timesler , there is a line
workers = 0 if os.name == ‘nt’ else 8
what
os.name ==‘nt’
meaning
Hello Namo!
It means that the operating system (“os”) is a microsoft
operating system of the NT lineage, such as windows
10 or windows 7 (or windows NT), as distinct from the
older dos and semi-dos windows systems such as
windows 3.1 or windows 95 (and also distinct from other
operating systems such as (old) mac and various flavors
of unix).
(I imagine that workers
refers to the number of worker
threads. Windows NT has it own, rather different, threading
implementation, so it’s plausible you might want to tweak
your threading approach for NT.)
Best.
K. Frank