自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

MyLinChi的博客

删繁就简三秋树,领异标新二月花。

  • 博客(4)
  • 资源 (16)
  • 收藏
  • 关注

原创 Java泛型中? extends E和? super E的区别

这篇文章谈一谈Java泛型声明<? extends E>和<? super E>的作用和区别<? extends E> <? extends E> 是 Upper Bound(上限) 的通配符,用来限制元素的类型的上限,比如List<?extendsFruit>fruits;表示集合中的元素类型上限为Fruit类型,即只能是Fruit或者Fruit的子类,因此对于下面的赋值是合理的fruits=n...

2020-06-26 09:07:45 847

原创 3.线程间的通信

前记:师夷长技以自强1.用轮询实现的线程间通信机制如下:import java.util.ArrayList;import java.util.List;class MyList{ private List list = new ArrayList(); public void add(){ list.add("haha"); } public int size(){ return list.size(); }}cl

2020-06-09 21:58:23 420 1

原创 2.变量的并发访问

前记:师夷长技以自强1.问题背景在上一篇文章中我们已经讨论了线程具有异步运行的特性,因此当多线程同时访问同一个实例变量时就会引发脏读的问题。而这显然不是我们愿意看到的,解决办法也很简单,就是给访问该变量的程序部分加锁。多线程并发在一些追求效率的系统中常存在变量不可见的问题,由于变量的不可见也会导致程序运行的结果不是我们想要的。一句话,同步性和可见性问题是多线程中的两大重点内容,他们分别对应于synchronized和volitle关键字的使用。本文主要围绕了在各种情况下如何使用这两个关键字而展开的。2

2020-06-07 23:44:55 340 1

原创 1.多线程使用基础

1.JDK中支持的类和接口Thread:线程类的声明部分如下:public class Threadextends Objectimplements Runnable可以看出Thread是一个直接继承自Object的类,并且实现了Runnable接口。根据JDK文档可知,创建一个线程的方式有两种:(1)继承Thread类;(2)把实现Runnable接口的类的对象作为Thread类构造函数参数。ex1(继承):public class ThreadInheri { publi

2020-06-05 17:54:59 258

Approximation Algorithms.rar

Most natural optimization problems, including those arising in important application areas, are NP-hard. Therefore, under the widely believed conjecture that P -=/= NP, their exact solution is prohibitively time consuming. Charting the landscape of approximability of these problems, via polynomial time algorithms, therefore becomes a compelling subject of scientific inquiry in computer science and mathematics. This book presents the theory of approximation algorithms as it stands today. It is reasonable to expect the picture to change with time. This book is divided into three parts. In Part I we cover combinatorial algorithms for a number of important problems, using a wide variety of algorithm design techniques. The latter may give Part I a non-cohesive appearance. However, this is to be expected - nature is very rich, and we cannot expect a few tricks to help solve the diverse collection of NP-hard problems. Indeed, in this part, we have purposely refrained from tightly categorizing algorithmic techniques so as not to trivialize matters. Instead, we have attempted to capture, as accurately as possible, the individual character of each problem, and point out connections between problems and algorithms for solving them. In Part II, we present linear programming based algorithms. These are categorized under two fundamental techniques: rounding and the primaldual schema. But once again, the exact approximation guarantee obtainable depends on the specific LP-relaxation used, and there is no fixed recipe for discovering good relaxations, just as there is no fixed recipe for proving a theorem in mathematics (readers familiar with complexity theory will recognize this as the philosophical point behind the P -=/= NP question).

2020-04-26

BF5325A按压式指纹传感器说明书.rar

BF5325A按压式指纹传感器说明书,包含产品的说明书

2020-04-14

JEE7帮助文档.rar

J2EE7帮助文档

2020-04-14

JDK9中文文档.rar

jdk9的帮助文档

2020-04-14

牛津字典(欧路词典).txt

由于连接太容易吞,所以放到文档里。打开即可完成百度云连接下载。有问题可以在评论区留言。由于连接太容易吞,所以放到文档里。打开即可完成百度云连接下载。有问题可以在评论区留言。由于连接太容易吞,所以放到文档里。打开即可完成百度云连接下载。有问题可以在评论区留言。

2020-03-29

__helloworld__

代码的一个示例,可以查看如何新建一个工程,然后运行。

2018-05-12

计算机技术的经典英文书籍

计算机领域的一些基础知识书籍,外文,非影印,自带目录高清。

2018-05-11

C、TCP、CAN底层相关电子书

收集一些高品质的电子书,用于深刻理解C语言以及通讯相关的TCP协议和CAN协议的电子文档。

2018-05-11

coolFormat

用于代码的格式化,如把tab字符转换为空格,把花括号按照标准格式摆放等。对于C/C++等代码的格式化效果不错。

2018-05-11

sscom5.13.1串口调试工具

用于串口调试的工具,版本新,可以显示log的打印时间,并能保存窗口字符数据到文本文件。

2018-05-11

算法导论(第三版)全部练习题+思考题答案(原书标准)

该答案很全面,是原书英文版的答案,可以保证正确性,是良好的算法学习助手。

2017-11-15

算法导论第三版(1-21章)答案(详细)

本资源花钱买来,因此资源分较高。但答案详细,物超所值。

2017-10-27

STL_帮助文档

2016-11-26

MusicPlayer

用MediaPlayer实现的android平台的音乐播放器源码。

2016-07-30

MediaPlayer音乐播放器

MediaPlayer音乐播放器

2016-07-30

android音乐播放器

android音乐播放器

2016-07-29

空空如也

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

TA关注的人

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