1main: { 2 instruction_set: { 3 instructions: [ 4 { 5 read_directory { 6 directory_name: "test_directory", 7 output: "file_list" 8 } 9 }, 10 { 11 multithreading: { 12 threads: [ 13 { 14 instruction: { 15 instruction_set { 16 instructions: [ 17 { 18 open_file: { 19 input: "file_name", 20 output_fd: "file_fd" 21 } 22 }, 23 { 24 read_file: { 25 input_fd: "file_fd" 26 } 27 }, 28 { 29 close_file: { 30 input_fd: "file_fd" 31 } 32 } 33 ], 34 iterate_options: { 35 list_name: "file_list", 36 item_name: "file_name" 37 } 38 } 39 }, 40 spawn: 2 41 } 42 ] 43 } 44 } 45 ] 46 } 47}, 48global {} 49