18%
07.11.2011
.start()
15 p1.start()
16 p3.start()
17
18 p1.join()
19 p2.join()
20 p3.join()
To see that multiprocessing creates multiple subprocesses, run the code shown in Listing 2
18%
28.11.2021
to the application are not being fulfilled.
Database service becomes unreachable.
Prometheus collects metrics by executing timed HTTP GET requests to defined targets (the default is 15 seconds
18%
25.09.2023
14 if __name__ == '__main__':
15 app.run(host="0.0.0.0", port=5000)
Listing 4
my-app/webapp/Dockerfile
01 FROM python:3.11
02 WORKDIR /app
03 COPY . .
04 RUN pip install Flask
18%
30.11.2025
()
15 p1.start()
16 p3.start()
17
18 p1.join()
19 p2.join()
20 p3.join()
To see that multiprocessing creates multiple subprocesses, run the code shown in Listing 2 (counting
18%
26.02.2014
name;
print (" Bytes-sent: %15s (total) %15s (Per-Sec)" %
(bytes2human(stats_after.bytes_sent),
bytes2human(stats_after.bytes_sent -
stats
18%
28.11.2023
:20:43 ubuntu22-vbox code[33011]: [2023-10-14 15:20:43] debug [tunnels::connections::ws] sent liveness ping
Oct 14 15:20:43 ubuntu22-vbox code[33011]: [2023-10-14 15:20:43] debug [tunnels
18%
21.03.2017
if __name__ == '__main__':
14
15 f = h5py.File("mytestfile.hdf5", "r")
16
17 for name in f:
18 print name
19 # end for
20
21 f.visit(printname);
22
23 # end
18%
04.08.2020
by timeit in Python: Extract timespec.c, stats.c, and stats.h from the book's source tarball, and compile it with:
cc timespec.c stats.c -o timespec -lm
You will want to read Chapter 15 in the book
18%
10.06.2015
"} )
09
10 # force called programs to english output
11 LANG=C LC_ALL=C
12
13 function die {
14 echo 1>&2 "$*"
15 exit 10
16 }
17
18 function get_display_resolution {
19 local find_display="$1
18%
27.09.2021
ssh ubuntu@52.90.56.122; do sleep 1; done
ssh: connect to host 52.90.56.122 port 22: Connection refused
ssh: connect to host 52.90.56.122 port 22: Connection refused
[ output truncated ]
Welcome