Julia v1.2.0 DocumentationAn example is the producer-consumer problem, where one complex procedure is genera�ng values and another complex procedure is consuming them. The consumer cannot simply call a producer func�on to get a a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back and reading from and wri�ng to it. Let's define a producer task, which produces values via the put! call. To consume values, we need to schedule the producer to run in a new task. A special Channel constructor0 码力 | 1250 页 | 4.29 MB | 1 年前3
Julia v1.1.1 DocumentationAn example is the producer-consumer problem, where one complex procedure is genera�ng values and another complex procedure is consuming them. The consumer cannot simply call a producer func�on to get a a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back and reading from and wri�ng to it. Let's define a producer task, which produces values via the put! call. To consume values, we need to schedule the producer to run in a new task. A special Channel constructor0 码力 | 1216 页 | 4.21 MB | 1 年前3
Julia 1.1.0 DocumentationAn example is the producer-consumer problem, where one complex procedure is genera�ng values and another complex procedure is consuming them. The consumer cannot simply call a producer func�on to get a a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back and reading from and wri�ng to it. Let's define a producer task, which produces values via the put! call. To consume values, we need to schedule the producer to run in a new task. A special Channel constructor0 码力 | 1214 页 | 4.21 MB | 1 年前3
Julia 1.2.0 DEV DocumentationAn example is the producer-consumer problem, where one complex procedure is genera�ng values and another complex procedure is consuming them. The consumer cannot simply call a producer func�on to get a a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back and reading from and wri�ng to it. Let's define a producer task, which produces values via the put! call. To consume values, we need to schedule the producer to run in a new task. A special Channel constructor0 码力 | 1252 页 | 4.28 MB | 1 年前3
Julia v1.5.4 DocumentationDistributed computing Julia Tasks allow suspending and resuming computations for I/O, event handling, producer-consumer processes, and similar patterns. Tasks can synchronize through operations like wait and example is the producer-consumer problem, where one complex procedure is generating values and another complex procedure is consuming them. The consumer cannot simply call a producer function to get get a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back0 码力 | 1337 页 | 4.41 MB | 1 年前3
Julia v1.6.6 Documentationor coroutines: Julia Tasks allow suspending and resuming computations for I/O, event handling, producer-consumer processes, and similar patterns. Tasks can synchronize through operations like wait and example is the producer-consumer problem, where one complex procedure is generating values and another complex procedure is consuming them. The consumer cannot simply call a producer function to get get a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.5 Documentationor coroutines: Julia Tasks allow suspending and resuming computations for I/O, event handling, producer-consumer processes, and similar patterns. Tasks can synchronize through operations like wait and example is the producer-consumer problem, where one complex procedure is generating values and another complex procedure is consuming them. The consumer cannot simply call a producer function to get get a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back0 码力 | 1325 页 | 4.54 MB | 1 年前3
Julia 1.6.7 Documentationor coroutines: Julia Tasks allow suspending and resuming computations for I/O, event handling, producer-consumer processes, and similar patterns. Tasks can synchronize through operations like wait and example is the producer-consumer problem, where one complex procedure is generating values and another complex procedure is consuming them. The consumer cannot simply call a producer function to get get a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.5.3 DocumentationDistributed computing Julia Tasks allow suspending and resuming computations for I/O, event handling, producer-consumer processes, and similar patterns. Tasks can synchronize through operations like wait and example is the producer-consumer problem, where one complex procedure is generating values and another complex procedure is consuming them. The consumer cannot simply call a producer function to get get a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back0 码力 | 1335 页 | 4.41 MB | 1 年前3
Julia 1.6.1 Documentationor coroutines: Julia Tasks allow suspending and resuming computations for I/O, event handling, producer-consumer processes, and similar patterns. Tasks can synchronize through operations like wait and example is the producer-consumer problem, where one complex procedure is generating values and another complex procedure is consuming them. The consumer cannot simply call a producer function to get get a value, because the producer may have more values to generate and so might not yet be ready to return. With tasks, the producer and consumer can both run as long as they need to, passing values back0 码力 | 1397 页 | 4.59 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













