- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 死锁的条件及其对应策略
1. 死锁的条件互斥条件(Mutual exclusion):资源不能被共享,只能由一个进程使用。请求与保持条件(Hold and wait):进程已获得了一些资源,但因请求其它资源被阻塞时,对已获得的资源保持不放。不可抢占条件(No pre-emption):有些系统资源是不可抢占的,当某个进程已获得这种资源后,系统不能强行收回,只能由...
2019-12-05 08:43:05 139
原创 Java批量建立文件夹
/* * 批量建立文件夹 * */ public static void createSubbranch(List<String> overdateList){// overDateList = getSubbranchNameList(filepath); for( int i =0 ; i < ...
2019-12-03 08:35:54 558 1
原创 Java实现单个文件复制
/** 文件复制:需要传的参数为该文件的原路径和已复制好文件的新路径。* */public static void copyFile(String oldPath, String newPath) { try { int bytesum = 0; int byteread = 0; File oldfile = new File(o...
2019-12-03 08:25:39 233
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人