自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 线程池的介绍、分析和实现方法

概念:创建多个线程并且进行管理的容器(可以创建和管理线程,并且给线程分配任务)为什么使用线程池若程序中有许多短时间任务的线程任务,那么就需要很多次的创建和销毁线程,很明显会增大开销,并且在一个新的线程创建了,另一个线程任务还未结束,那么占据的资源势必会越来越多,很容易造成死锁等问题而线程池中的任务结束后,并不会死亡,一直等待下一个任务的到来优点:重用已经存在的线程,减少线程的创建和销毁的开销可以有效控制最大并发的线程数,提高了系统资源的使用率避免很多竞争,如OOM、死锁等可以提供

2021-04-05 21:42:20 73

原创 PAT甲级 1011 World Cup Betting

PAT甲级 1011 World Cup Betting题目描述With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the Wo...

2020-01-25 19:05:15 111

原创 PAT甲级 1010 Radix

PAT甲级1010 Radix

2020-01-24 21:32:42 121

原创 PAT甲级 1009 Product of Polynomials

PAT甲级 1009 Product of Polynomials问题描述This time, you are supposed to find A×B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 line...

2020-01-22 01:42:16 134

原创 PAT甲级 1008 Elevator

PAT甲级 1008 Elevator问题描述The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specif...

2020-01-22 01:35:07 75

原创 PAT甲级 1007 Maximum Subsequence Sum

PAT甲级 1006 Sign In and Sign Out问题描述At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the r...

2020-01-22 01:22:20 101

原创 PAT甲级 1005 Spell It Right

PAT甲级 1005 Spell It Right问题描述Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input fil...

2020-01-22 01:15:53 149

原创 PAT甲级 1004 Counting Leaves

PAT甲级 1004 Counting Leaves问题描述A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains o...

2020-01-22 01:10:48 126

原创 PAT甲级 1003 Emergency

PAT甲级 1003 Emergency题目描述As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue te...

2020-01-22 00:56:29 124

原创 PAT甲级 1002 A+B for Polynomials

PAT甲级 1002 A+B for Polynomials题目描述This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, ...

2020-01-22 00:31:21 109

原创 PAT甲级 1001 A+B Format

PAT甲级 1001 A+B Format题目描述题目描述Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Inpu...

2020-01-22 00:16:16 150

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除