1.线程的创建方式 package com.atguigu.gmall.product.thread; import java.math.BigDecimal; public class ThreadTest { public static void main(String[] args) { System.out.println("主线程开始"); Thread thread = new Thread01(); thread.start(); System.out.println("主线程完毕"); } public static class Thread01 extends Thread{ @Override public void run() { System.out.println("通过继承Thread类,重写run()方法,创建线程"+Thread.currentThread().getId()); BigDecimal bigDecimal = new BigDecimal(10); BigDecimal bigDecimal1 = new...