⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 线程通信
💻 TXT
字号:
soft2001 concurrent programming
library_client_server system by threadpool

group member:

Congjia , yuan (group leader, author of all classes)
Hao ran , li (report writer, debugger)
Gretchen Andres (debugger)
JULIE LAM (system analyser) 
Thanh (uml modeler)  


1) how to compile:

   1. javac *.java
   2. java ServerGUI  (start the server, and give you a port number on the title bar of the serverGUI)
   3. java ClientGUI   #port   

2) how to play:

   1. in this program we use integer as our book_id, book_title and user_id,just to make
      code simpler (0-99 respectively).

   2. first thing you need to do is : type (0-99) stands for user_id into the textfield 
      and click login.   

   3. after a successfully login, what you can do now are "borrow","return","search" ,
      "checkloan" , and "demo", these button will act on whatever appears in the TextField.
      eg.  you can type 5 (means book5), then click "borrow", and then "checkloan".
    
   4. we put the time delay in the threads in order to create chances for potential inteference
      and deadlock.
  
   5. "demo" work like this : each client will send 100 requests one by one. we need
      a few clients do the same thing to server in order to keep it busy, then in Server
      window, you can notice the increase or decrease of the pool size.

   
have fun!

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -