Begining Python os.fork output -


i new python.

i know os.fork create copy.

what output of ? , please explain.

pid = os.fork() if pid == 0:     print(1, end = '')     print(3, end = '') else:     print(3, end = '')     print(2, end = '') print(0, end = '') 

make 2 identical copies of address spaces, 1 parent , other child os.fork does

refer this


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -