Question
(1) Contents of file1.txt are: 34 56 87 12 98 113 771 88 641 13 (2) Contents of file2.txt are (double of the values of
(1) Contents of file1.txt are:
34 56 87 12 98 113 771 88 641 13
(2) Contents of file2.txt are (double of the values of file1.txt):
68 112 174 24 196 226 1542 176 1282 26
(TASK) Split the files file1.txt and file2.txt into 2 chunks (use Linux's "split" command). Then write a Python code with threading implemented which should pick corresponding "chunks" of file1.txt and file2.txt and sum the numbers (from each chunk) and write into file3.txt such that the sequence of the resulting values should maintain like: 102 -- 34 + 68 168 261 36 294 339 .. and so on
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started