摘要:
题意:建立三个线程,A线程打印10次A,B线程打印10次B,C线程打印10次C,要求线程同时运行,交替打印10次ABC。这个问题用Object的wait(),notify()就可以很方便的解决。 代码如下: public class MyThreadPrinter2 implements Runna 阅读全文
摘要:
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" a 阅读全文
摘要:
好了,基于这个代码上, 我们添加一个线性布局的 RecyclerView <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 阅读全文
摘要:
package nd.no.xww.bottomnavigationlayout; import android.content.Context;import android.media.Image;import android.support.annotation.NonNull;import a 阅读全文
摘要:
<?xml version="1.0" encoding="utf-8"?><android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/ 阅读全文
摘要:
int[] pics = { R.drawable.a1, R.drawable.a2, R.drawable.a3, R.drawable.a4, R.drawable.a5, R.drawable.a6, R.drawable.a7, R.drawable.a8, R.drawable.a9, 阅读全文
摘要:
调用 trx_sys_create_rsegs进行: 说明一下关于innodb_undo_logs参数和innodb_rollback_segments参数,他们作用就是设置rollback segment 的个数,本文以128为例。 根据注释和代码innodb_undo_logs已经是个淘汰的参数 阅读全文
摘要:
根据参数innodb_undo_tablespaces 的配置通过调用srv_undo_tablespace_create分别进行文件建立,默认建立的大小为10M: for (i = 0; create_new_db && i < n_conf_tablespaces; ++i) //n_conf_ 阅读全文
摘要:
/* Create the trx sys file block in a new allocated file segment */ block = fseg_create(TRX_SYS_SPACE, 0, TRX_SYS + TRX_SYS_FSEG_HEADER, mtr); //建立seg 阅读全文
摘要:
Asp.net动态添加GridView列,列中的控件可以任意指定一个或多个。 比使用一般的Table控件,更加的灵活,且能够很多的支持数据的绑定操作。 下面给出了一个示例。 1. 首先是指定动态要添加的列 2.绑定数据 3.获取GridView中的值。 代码如下: using System;usin 阅读全文