Skip to content

生产者与消费者模型#164

Open
huesf wants to merge 5 commits into
hcsp:masterfrom
huesf:master
Open

生产者与消费者模型#164
huesf wants to merge 5 commits into
hcsp:masterfrom
huesf:master

Conversation

@huesf

@huesf huesf commented Sep 1, 2020

Copy link
Copy Markdown
Contributor
  • 这个PR解答了当前仓库中的题目(机器人会自动判题并合并当前PR)
  • 这个PR修复了当前仓库中的一些代码缺陷(机器人不会判题,而是由管理员来处理当前PR)

@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

🎉 感谢提交Pull Request!请稍等片刻,我们已经将其提交到CI进行检查,一旦有结果会立即通知您!


public static class Container {
private Optional<Integer> value = Optional.empty();
private Condition notConsumedYet;//还没有被消费

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

';' 后应有空格。

public static class Container {
private Optional<Integer> value = Optional.empty();
private Condition notConsumedYet;//还没有被消费
private Condition notProducedYet;//还没有被生产

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

';' 后应有空格。

package com.github.hcsp.multithread;

import java.util.Random;
import java.util.concurrent.BlockingDeque;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无用导入 - java.util.concurrent.BlockingDeque 。

@@ -1,24 +1,32 @@
package com.github.hcsp.multithread;

import java.util.Optional;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无用导入 - java.util.Optional 。

package com.github.hcsp.multithread;

import java.util.Optional;
import java.util.Random;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无用导入 - java.util.Random 。


import java.util.Optional;
import java.util.Random;
import java.util.concurrent.Exchanger;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无用导入 - java.util.concurrent.Exchanger 。

import java.util.Optional;
import java.util.Random;
import java.util.concurrent.Exchanger;
import java.util.concurrent.TimeUnit;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无用导入 - java.util.concurrent.TimeUnit 。

@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 7877f2f ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

1 similar comment
@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 7877f2f ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 ba79b0b ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

1 similar comment
@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 ba79b0b ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 aa035f2 ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

1 similar comment
@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 aa035f2 ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 609794f ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

1 similar comment
@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 609794f ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 e57ef33 ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

1 similar comment
@hcsp-bot

hcsp-bot commented Sep 1, 2020

Copy link
Copy Markdown
Contributor

你的提交 e57ef33 ,似乎失败了:Your tests failed on CircleCI

😅 请不要气馁,仔细分析原因,再接再厉!

@hcsp-bot hcsp-bot mentioned this pull request Sep 2, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants