1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | |
---|
4 | LIB "parallel.lib"; |
---|
5 | |
---|
6 | ring R1 = 0, (x,y,z), lp; |
---|
7 | ideal I = 3x3y+x3+xy3+y2z2, 2x3z-xy-xz3-y4-z2, 2x2yz-2xy2+xz2-y4; |
---|
8 | ideal J = x10+x9y2, x2y7-y8; |
---|
9 | list commands = list("std", "std"); |
---|
10 | list arguments = list(list(I), list(J)); |
---|
11 | parallelWaitN(commands, arguments, 1); |
---|
12 | parallelWaitFirst(commands, arguments); |
---|
13 | |
---|
14 | ring R2 = 0, (x,y,z), dp; |
---|
15 | ideal I1 = z8+z6+4z5+4z3+4z2+4, -z2+y; |
---|
16 | ideal I2 = x9y2+x10, x2y7-y8; |
---|
17 | ideal I3 = x3-2xy, x2y-2y2+x; |
---|
18 | string command = "std"; |
---|
19 | list arguments = list(list(I1), list(I2), list(I3)); |
---|
20 | parallelWaitAll(command, arguments); |
---|
21 | |
---|
22 | ring R3 = 0, (x,y,z), dp; |
---|
23 | ideal I = x, y, z; |
---|
24 | intvec v = 0:3; |
---|
25 | list l = list(I, v); |
---|
26 | module m1 = x*gen(1); |
---|
27 | module m2; |
---|
28 | command = "size"; |
---|
29 | list arguments1 = list(list(I), list(v), list(l), list(m1)); |
---|
30 | list arguments2 = list(list(I), list(v), list(l), list(m2)); |
---|
31 | parallelTestAND(command, arguments1); |
---|
32 | parallelTestAND(command, arguments2); |
---|
33 | |
---|
34 | ring R4 = 0, (x,y,z), dp; |
---|
35 | ideal I; |
---|
36 | string s; |
---|
37 | list l; |
---|
38 | module m1 = x*gen(1); |
---|
39 | module m2; |
---|
40 | command = "size"; |
---|
41 | list arguments1 = list(list(I), list(s), list(l), list(m1)); |
---|
42 | list arguments2 = list(list(I), list(s), list(l), list(m2)); |
---|
43 | parallelTestOR(command, arguments1); |
---|
44 | parallelTestOR(command, arguments2); |
---|
45 | |
---|
46 | tst_status(1);$ |
---|