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

📄 atm_dce_db.h

📁 linux 多线程例子
💻 H
字号:
/******************************************************** * An example source module to accompany... * * "Using POSIX Threads: Programming with Pthreads" *     by Brad nichols, Dick Buttlar, Jackie Farrell *     O'Reilly & Associates, Inc. * ******************************************************** * atm_dce_db.h * * Include file for database module of example atm program. */#define MAX_NUM_ACCOUNTS  240 #define CPU_LOOP_SIZE     325000typedef struct {  int id;  int password;  int balance;  int inuse;} account_t;void init_account_db(int, int, int);int new_account(int *, account_t **);int retrieve_account(int, account_t **);int store_account(account_t *);int return_account(account_t *);int delete_account(account_t *);

⌨️ 快捷键说明

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