简体   繁体   English

在库管理系统上使用多线程

[英]Using Multi-threading on a library management system

I'm working on a library management system in Java. 我正在使用Java开发library management system

Now I finished it, but I don't use and thread and multi-hreading concepts on it. 现在,我完成了它,但是我没有在上面使用线程和多线程概念。

Where should I use multi-threading on this particular program? 在该特定程序上,我应该在哪里使用多线程?

My program has 2 mode for login: 我的程序有两种登录模式:

  1. administration 管理
  2. User 用户

In administration mode, the add/remove/change and reporting from books and users is doable. 在管理模式下,可以执行来自书籍和用户的添加/删除/更改和报告。

In user mode, user can see all books and they borrowed status and can select a book and borrow its favorite book if it is not borrowed. 在用户模式下,用户可以查看所有书籍并获得借阅状态,并且可以选择一本书并借阅其喜欢的书籍(如果未借用的话)。

Where should i use it? 我应该在哪里使用它?

You should not use multi-threading if you don't need it. 如果不需要,则不应使用多线程。 As you write you are finished with your application. 在撰写本文时,您已经完成了应用程序。 If it works as needed and your user can find and borrow books there is no need to add multi-threading. 如果它可以按需工作并且您的用户可以查找和借书,则无需添加多线程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM