分享一道诺西的设计笔试题. 本人没通过面试. 不欢迎拍砖.

前几天在诺西参加了一个笔试. 还留了一道题下来做, 做完了把答案发给面试官.
题目如下. 简单来说就是一道以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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值