- 博客(7)
- 收藏
- 关注
原创 GC垃圾回收全过程
jvm垃圾回收机制(GC)垃圾回收俗称的有两种:minor GC和 major gc,minor GC表示回收青年代的垃圾 , major gc有时是回收老年代的old GC,有时是对内存的full GC(结合图1-1)Patial GCyoung GC 年轻代回收Old GC 老年代回收 只有CMS的Concurrent collection是这个模式Mixed GC 混编回收 只有G1有这个模式full GC(一般默认会在老年代内存达到68%【可以修改】时进行)全局回收 如果
2021-08-27 13:40:08
688
1
原创 链表插入删除
package cn;public class LinkList <T>{ private int length; private Node head; private class Node{ Node next; T value; } LinkList(){ head = new Node(); length=1; } public void InsertNo...
2021-07-18 20:23:42
137
原创 链表的使用
#include<stdio.h>#include<stdlib.h>#define InitSize 10#define null 0typedef struct LNode{ float data; struct LNode *next;}LNode,*LinkList;bool initLode(LinkList &L){ L = static_cast<LNode *>(malloc(sizeof(LNode)));...
2021-07-14 09:07:23
134
原创 顺序表(静态)插入删除查找
bool ListInsert(seqList &L,int i,int e){ if(i<1 || i>L.length+1) return false; if(L.length >= L.MaxSize) return false; for(int j=L.length;j>i;j--) L.data[j]=L.data[j-1]; L.data[i]=e; L.length...
2021-07-13 22:44:17
139
原创 2021-05-04
文件内容转换成列表:with open('somefile','r') as f: content = list(f) print(content)"""['Hello\n', 'World\n', 'Python']"""去掉换行符方式一with open('somefile','r') as f: content = f.read().splitlines() print(content)"""['Hello', 'World', 'Python'.
2021-07-13 22:15:49
86
原创 顺序表动态存储
#include<stdio.h>#include<stdlib.h>#define InitSize 10typedef struct{ float *data; int length; int MaxSize; //顺序表最大容量}seqList;void initSeL(seqList &L){ L.data = static_cast<float*>(malloc(InitSize * sizeof(f...
2021-07-13 22:12:52
214
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅