前几天在诺西参加了一个笔试. 还留了一道题下来做, 做完了把答案发给面试官.
题目如下. 简单来说就是一道以RMI设计生产者消费者的程序,生产者消费者数目可以配置到XML中.
高手也许可以在几小时内搞定. 不过本人之前没用过RMI所以花了1天多的时间.
结果是没过. 真是浪费时间
这年头招聘要求是越来越严格. 找工作也变得越来越难,所以本人把这题分享出来,希望如果有人遇到此类的题目可以稍微的节省一点时间.
附上本人编写的代码.
Implement a producer-consumer scenario program on linux environment.
Requirements:
1. Multi-Thread producer and consumer. Thread number should be configurable in property or xml format file.
2. The products exchanging between producers and consumers should be implemented by using RMI. Product should be produced by producer.
3. Producer and consumer program should run in separate JVMS.
4. The products should be indentified with ordered and unique ID.
5. Can not use java.util.concurrent package.
6. The producing and consuming status should be logged for checking.
7. The program can be started directly on linux by using script.
8. good description of how to check the producing and consuming status.
9. keep your design simple.
题目如下. 简单来说就是一道以RMI设计生产者消费者的程序,生产者消费者数目可以配置到XML中.
高手也许可以在几小时内搞定. 不过本人之前没用过RMI所以花了1天多的时间.
结果是没过. 真是浪费时间
这年头招聘要求是越来越严格. 找工作也变得越来越难,所以本人把这题分享出来,希望如果有人遇到此类的题目可以稍微的节省一点时间.
附上本人编写的代码.
Implement a producer-consumer scenario program on linux environment.
Requirements:
1. Multi-Thread producer and consumer. Thread number should be configurable in property or xml format file.
2. The products exchanging between producers and consumers should be implemented by using RMI. Product should be produced by producer.
3. Producer and consumer program should run in separate JVMS.
4. The products should be indentified with ordered and unique ID.
5. Can not use java.util.concurrent package.
6. The producing and consuming status should be logged for checking.
7. The program can be started directly on linux by using script.
8. good description of how to check the producing and consuming status.
9. keep your design simple.