xref: /aosp_15_r20/test/dittosuite/example/multithreading.ditto (revision 6fa2df46f119dce7527f5beb2814eca0e6f886ac)
1main: {
2  multithreading: {
3    threads: [
4      {
5        instruction: {
6          instruction_set: {
7            instructions: [
8              {
9                open_file: {
10                  path_name: "newfile2.txt",
11                  output_fd: "test_file"
12                }
13              },
14              {
15                read_file: {
16                  input_fd: "test_file"
17                }
18              },
19              {
20                close_file: {
21                  input_fd: "test_file"
22                }
23              }
24            ]
25          }
26        },
27        spawn: 4
28      }
29    ]
30  },
31  repeat: 2
32},
33global {
34  absolute_path: "";
35}
36