ICode9

精准搜索请尝试: 精确搜索
  • 手写最简单的simplefoc的svpwm算法(便于理解)2021-12-10 22:06:04

    此帖子用于记录学习过程中写的程序(半成品)。 1.arduino代码: test.ino // (010)U2 II U6(110) // ********* // III * * * * I // * * * * // (011)U3 *************** U4(100) // * * * * // IV *

  • 63-Thread类的常用方法-sleep2021-10-19 16:34:35

    static voidsleep(long millis)           在指定的毫秒数内让当前正在执行的线程休眠(暂停执行),毫秒数结束之后程序继续执行    

  • Java-id生成2021-09-30 16:36:49

    package com.ego.commons.utils; import java.util.Random; import java.util.UUID; /** * 各种id生成策略 * @version 1.0 */ public class IDUtils { /** * 图片名生成 */ public static String genImageName() { //取当前时间的长整形值包含

  • java 常见连接池性能测试2021-09-14 01:01:40

    使用druid官方的 Case1 测试,但是不好用,我需要改造一下源码: /* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may

  • Java日期时间API系列41-----根据毫秒值计算倒计时2021-07-20 07:32:28

      会有一个比较常见的需求,计算倒计时,比如,计算距离某时间剩余时间(27小时10分钟30秒、1天3小时10分钟30秒)或者已经进行了多长时间等。下面是2种实现代码:其中第一种超过1天会体现在小时上,比如27小时10分钟30秒。   /** * 根据毫秒值计算倒计时 * @param millis 相

  • 多线程并发 之 判断线程任务是否全部结束2021-06-27 21:29:41

    文章目录 1、前言2、实现方案2.1、方案:isTerminated2.2、方案:CountDownLatch2.3、方案:Future & Callable 1、前言 我们多线程处理任务的时候,有时候需要多线程都执行完成的情况下才能执行其他的任务。这种情况下我们就需要判断多线程什么时候执行完。有以下几种方法,大家

  • 多线程-3.sleep() yield() join()2021-03-12 15:01:17

    1.sleep()方法   jdk文档描述:Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers. The thread does not lose ownership of an

  • 预估时间毫秒转时分秒毫秒2020-12-23 10:01:45

    DateUtil工具包所用到的 public static final long MILLIS_PER_SECOND = 1000; // Number of milliseconds in a standard second. public static final long MILLIS_PER_MINUTE = 60 * MILLIS_PER_SECOND; // Number of milliseconds in a standard minute. public static fina

  • springcloud zuul 配置都正确,但提示 500 错误代码 什么原因2020-03-10 13:55:35

    经过仔细检查,全部配置映射都没问题,springboot-admin 监控中心所有服务状态全部显示绿色正常但就是通过 zuul 访问服务提示 500错误这个情况,一般是请求超时所致调整请求超时时间即可zuul服务本地报错提示:com.netflix.zuul.exception.ZuulException: Forwarding error原始配置示例:hys

  • ObjectMonitor::wait(jlong millis, bool interruptible, TRAPS)2019-11-10 15:58:07

    1 // Wait/Notify/NotifyAll 2 3 // 4 5 // Note: a subset of changes to ObjectMonitor::wait() 6 7 // will need to be replicated in complete_exit above 8 9 void ObjectMonitor::wait(jlong millis, bool interruptible, TRAPS) { 10 11

  • java线程基本概念2019-10-24 09:04:08

    一、join join()源码分析(基于JDK1.7.0_40) public final void join() throws InterruptedException { join(0);}public final synchronized void join(long millis)throws InterruptedException { long base = System.currentTimeMillis(); long now = 0; if (mill

  • sql脚本函数编写postgresql数据库2019-09-11 20:53:35

    postgresql创建Long自增函数 CREATE SEQUENCE global_id_sequence; CREATE OR REPLACE FUNCTION seq_id(OUT result bigint) AS $$ DECLARE our_epoch bigint := 1314220021721; seq_id bigint; now_millis bigint; -- the id of this DB shard, must be set for

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有